.nav_mid_left,.nav_mid_right{float:left;}.nav_mid_left{width:680px;}.nav_mid_right{width:300px;}.nav_mid_left li { float:left; list-style-type:none; width:100px; text-align:center; line-height:40px; height:40px;}
4 回答
Suber丶林
TA贡献75条经验 获得超180个赞
ul有默认的内边距与外边距,可以将其设置为0,如下:
/* .nav_mid_left是ul的话 */ .nav_mid_left {margin: 0; padding: 0;} /* .nav_mid_left是ul的上一级的话 */ .nav_mid_left ul {margin: 0; padding: 0;}
- 4 回答
- 0 关注
- 1601 浏览
添加回答
举报
0/150
提交
取消