下面哪个css可以使文本水平垂直居中?
A. height:40px;line-height:45px;text-align:center;
B. height:45px;line-height:40px;text-align:center;
C. height:45px;line-height:45px;text-align:auto;
D. height:45px;line-height:45px;text-align:center;
A. a,span{float:left;}
B. a,span{float:right;}
C. a{float:left;}span{float:right;}
D. a{float:right;}span{float:left;}
利用float: left属性可以把列表项浮动起来,从而形成水平导航。
A. 对
B. 错
给a元素设置宽高,需给a元素设置display:block;
A. 对
B. 错