亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

float引起層飄出父層的解決方法

 更新時間:2008年04月20日 22:30:50   作者:  
css div布局總會遇到很多瀏覽器兼容的問題。
1.加clear空div
.clearfix:after {
content: “.”; display: block;
height: 0;
clear: both;
visibility: hidden;}
.clearfix {display: inline-block;}
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}/* End hide from IE-mac */
.clearfix {
display: block;
margin: 0px;
clear: both;
padding: 0px;
visibility: hidden;
background-color:#666666;
border:0px none #FFFFFF;
}
.clearfix:after { height: 1px;}

使用方法:
在所有浮動層之后加上這個層
<div class=”clearfix”></div>

2.把背景層加浮動,但是這個方法會影響其他的div,有時候好用。

3.加 overflow 這個也有問題,會影響div的外觀。

相關(guān)文章

最新評論