https://github.com/lianbinghua

三列,左右两列宽度固定,中间宽度自适应

body{
margin:0;
}
#wrapper{
height: 300px;
overflow: hidden;
}
.left{
width: 200px;
height: 100%;
background: red;
float: left;
}
.right{
width: 200px;
height: 100%;
float: right;
background: green;

}
.center{
height:100%;
margin-left:200px;
margin-right:200px;
background:blue;
}

 

 

<div id="wrapper">
<div class="left">
</div>

<div class="right">
</div>
<div class="center"></div>
</div>

posted @ 2014-08-18 11:22  连冰华  阅读(235)  评论(0编辑  收藏  举报