eightHundreds
11/4/2016 - 5:42 AM

清除浮动,添加在会被浮动影响的元素上面

清除浮动,添加在会被浮动影响的元素上面

.clearfix::after{ 
            content: '';
            display: block;
            clear: both;
            height: 0;
            visibility: hidden;
        }
.clearfix{
overflow: auto;
zoom: 1;//兼容IE
}