.clearfix:before,.clearfix:after { display: table; content: "";
}.clearfix:after { clear: both;}.clearfix { *zoom: 1px;/* IE678 */}
哪一个元素出问题,就在哪个元素调用clearfix方法.
清除浮动
原文:http://www.cnblogs.com/hjsuceess/p/7383722.html