首页 > 代码库 > 伪类清楚浮动

伪类清楚浮动

/* 清理浮动 */    
.clearfix:after{
    content: " ";
    display: block;
    height: 0;
    visibility: hidden;
    clear: both;
    font-size: 0;
}
.clearfix{
    *zoom: 1;
}