CSS清除浮动 1、在浮动的板块上加 overflow: hidden; 2、在浮动的板块上加 clear:both; 3、在浮动的上一部分板块加 .clearfix:before,.clearfix:after { content: ""; display:table; } .clearfix:after{ clear:both; } .clearfix { *zoom:1; }