.clearfix:after { content: ''; display: block; height: 0; overflow: hidden; clear: both; }
.clearfix { *zoom: 1; }
簡化
.fix:after {}
.fix {}
更好的方法
.clearfix:after { content: ''; display: table; clear: both; }
.clearfix { *zoom: 1; }
.clearfix:after { content: ''; display: block; height: 0; overflow: hidden; clear: both; }
.clearfix { *zoom: 1; }
簡化
.fix:after {}
.fix {}
更好的方法
.clearfix:after { content: ''; display: table; clear: both; }
.clearfix { *zoom: 1; }