清除浮动clearfix
程序员文章站
2022-04-15 23:29:45
```css.clearfix:after, .clearfix:before { content: " "; display: table;}.clearfix:after { clear: both;}.clearfix{zoom:1;/*为IE6,7的兼容性设置*/}``` ......
.clearfix:after, .clearfix:before { content: " "; display: table; } .clearfix:after { clear: both; } .clearfix{zoom:1;/*为ie6,7的兼容性设置*/}
上一篇: 03-django模型(1)