我m使用我的网站中的div通过使用float:left和float:之后使用明确:两者,其在所有浏览器工作正常,除ie7我已经尝试了很多的事情,请告诉我一个解决方案来解决这个问题....清除属性不工作ie 7
CSS:
.clear
{
clear : both;
margin : 0px;
}
HTML:
<div style="float:left">some text</div>
<div style="float:left">some text</div>
<div class="clear"></div>
<div style="float:left">some text</div>
<div style="float:left">some text</div>
感谢
这是[Doctype](http://doctype.com/)的问题。 – kiamlaluno 2010-08-04 18:56:13
IE7在处理清晰方面似乎有一个“bug”:两者都有。它不适用于例如标签标签,如果您将其设置为显示:block并且清除:对于这些标签也是如此。 – Johncl 2013-12-20 09:52:14