清除浮動clearfix (影片教學建議:css影片教學) 實例程式碼:.clearfix:after, .clearfix:before { content: " "; display: table; } .clearfix:after { clear: both; } .clearfix{zoom:1;/*为IE6,7的兼容性设置*/}推薦教學:css快速入門