好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

chrome浏览器li使用float:left错位的情况_html/css_WEB-ITnose

在IE下都正常,没有任何问题,但是在chrome(版本 45.0.2454.85 m)下却出现这样错位的情况,找不到是什么原因造成的。

假如不用float:left,从第5个li开始,也会有空白的情况,有谁遇到过这种情况,是什么原因引起的?



以下是代码:
     chrome浏览器li出现空白错位  *{margin:0;padding:0}li{list-style:none;}a{color:#333; text-decoration: none;}.main{width:980px;margin:0 auto;overflow:hidden;}.link ul{overflow:hidden;}.link li{float:left;line-height:28px;height:28px;overflow:hidden;background-color:#ccc;font-size:12px;padding:0 12px;}   

查看更多关于chrome浏览器li使用float:left错位的情况_html/css_WEB-ITnose的详细内容...

  阅读:33次