3行垂直布局问题
如果想上下固定,中间自适应怎么布局?我写的中间的div穿透了底部
<div class="header"></div> <div class="center"> <div class="left" id="left">左边</div> <div class="right">右边</div> </div> <div class="footer">底部</div> .header{width: 100%;height: 80px;background-color: #303030;position: absolute;top:0;left:0;z-index: 2;opacity: 0.3} .center{background-color: white;margin-top: 80px;margin-bottom: 22px;} .left{width:320px;height: 100%;float:left;background-color: yellowgreen;} .right{width:auto;height:100%;background-color: orange} .footer{width:100%;height: 21px;border-top:1px solid #d0d0d0;background-color:#f0f0f0;position: absolute;bottom: 0;left:0;z-index: 1}