css万能清除浮动

<style>
.clearfix:after
{
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
*html .clearfix{
height:1%;
}
*+html .clearfix{
height:1%;
}
.clearfix
{
display:inline-block;
}
.clearfix {display:block;}
</style>

posted on 2013-05-14 15:49  yun007  阅读(272)  评论(0编辑  收藏  举报