出现的问题就是,右边的div显示的背景颜色不全,不能把右边的区域覆盖掉,求大神解决!!
css部分
.top{height:100px; background:#ccc}
.main{width:600px;overflow:hidden;position:relative;}
.left{ width:200px; height:500px;float:left; background:blue; }
.right{ position:absolute; left:0; top:0;float:right;height:500px; background:#9C9; margin-left:200px;width:80%}
.foot{ height:50px; background:#F63; }
html部分
<div class="top">top</div>
<div class="main">
<div class="right">right</div>
<div class="left">left</div>
</div>
<div class="foot">foot</div>