clearfix--清除浮动

 1 .clearfix {
 2   zoom: 1;
 3   display: table;
 4   width: 100%;
 5 }
 6 .clearfix:after {
 7   content: " ";
 8   display: block;
 9   clear: both;
10   height: 0;
11 }

原文:http://www.45eggs.com/xhtml-css/2011/css-clearfix.html

posted @ 2015-05-18 20:39  talentzemin  阅读(138)  评论(0编辑  收藏  举报