浮动(float)
浮动的特点
浮动是挤在一起的
、
清除浮动
清除浮动方式
其他的清除浮动方法
方式一:
方式二:
方式三:
.clearfix:after {
content: "";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clearfix { /* IE6、7 专有 */
*zoom: 1;
}
浮动是挤在一起的
、
.clearfix:after {
content: "";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clearfix { /* IE6、7 专有 */
*zoom: 1;
}