CSS 浮动清理,不使用 clear:both标签
例如: <divstyle="background:#666;"><!--floatcontainer--> <divstyle="float:left;width:30%;height:40px;background:#EEE;">SomeContent</div> </div> 此时预览此代码,我们会发现最外层的父元素floatcontainer,并没有显示。这是因为子元素因进行了浮动,而脱离...