标签:clear over 塌陷 div isp after lock content flow
1,clear清除浮動
加一個空div清浮動
壞處:破壞了頁面結構,多餘的div
2,用css清除浮動等同于在div後面加個div
#father:after{
content:‘‘;
display:block;
clear:both;
}
3.加一個overflow
overflow:hide
4,用position
标签:clear over 塌陷 div isp after lock content flow
原文地址:http://www.cnblogs.com/Gavinzhong/p/6770442.html