蘇寧總結

清除浮動的方式; .clearfix:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; } .clearfix{ zoom:1; }     tip:要是用了定位。就不能在父元素:overflow:hidden;由於會把子元素的內容給覆蓋了;就用上面的這種清除浮動的方法;
相關文章
相關標籤/搜索