摘要:
1、after伪类+content方式,推荐.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden;}.zoom{ zoom:1;// fix ie}2、浮动元素后面添加清除浮动空div.clearFloat{ clear : both; }3、父容器指定overflow:hidden,这种方式有比较多的限制,很多情况下不适用。4、... 阅读全文