css布局:
left、top、bottom、right,他们的值也可是以百分比.
position:fixed、absolute、relative.
水平平铺:left:0,right:0
垂直平铺:top:0,bottom:0
在右半部分显示:left:50%
水平居中:text-align:center,第二种方法:margin:10px auto;(即margin-left和margin-right都设置为auto就会居中显示。)
垂直居中:设置line-height
left、top、bottom、right,他们的值也可是以百分比.
position:fixed、absolute、relative.
水平平铺:left:0,right:0
垂直平铺:top:0,bottom:0
在右半部分显示:left:50%
水平居中:text-align:center,第二种方法:margin:10px auto;(即margin-left和margin-right都设置为auto就会居中显示。)
垂直居中:设置line-height