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

CSS三列布局兩端固定寬度中間自適應(yīng)

  發(fā)布時(shí)間:2014-02-27 15:35:01   作者:佚名   我要評(píng)論
CSS三列布局走出HTML布局陰影,兩端固定寬度,中間自適應(yīng)結(jié)構(gòu),下面有個(gè)不錯(cuò)的示例,大家可以參考下
兩端固定寬度,中間自適應(yīng)結(jié)構(gòu):

復(fù)制代碼
代碼如下:

<div class="wrap">
<div class="main">
<div class="content"></div>
</div>
<div class="submain">2</div>
<div class="sidebar">3</div>
</div>


復(fù)制代碼
代碼如下:

.wrap{width: 500px;border: 1px solid;overflow: hidden;}
.main{float: left;width: 100%;}
.content{height: 50px;margin: 0 150px;background-color: #f60;}
.submain{float: left;width: 150px;height: 50px;margin-left: -100%;background-color: #6f0;}
.sidebar{float: left;width: 150px;height: 50px;margin-left: -150px;background-color: #06f;}

結(jié)果如下所示:

相關(guān)文章

最新評(píng)論