css 代码段:CSS clearfix

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 代码段:CSS clearfix相关的知识,希望对你有一定的参考价值。

# Micro clearfix hack
Known support: Firefox 3.5+, Safari 4+, Chrome, Opera 9+, IE 6+

More:
- [A new micro clearfix hack](http://nicolasgallagher.com/micro-clearfix-hack/)
- [Clear Float](http://www.w3cplus.com/css/clear-float)
.cf:before,
.cf:after { content: ""; display: table; }
.cf:after { clear: both; }
.cf { *zoom: 1; }

以上是关于css 代码段:CSS clearfix的主要内容,如果未能解决你的问题,请参考以下文章

scss Clearfix CSS基于David Walsh的代码:http://davidwalsh.name/css-clear-fix

css #css:CSS Clearfix

css css.clearfix

css clearfix - 用于CSS Floats

css CSS:Clearfix

css Clearfix - 经典CSS