右侧超出父元素边界
<style type="text/css">
body{ margin:0; padding:0; font-size:30px; color:#fff}
.top{ background:#999; width:100%; }
.main{background:red; height:400px;}
.left{width:200px;height:400px;background:blue;float:left}
.right{
height: 400px;
background-color: green;
position:absolute;
margin-left: 210px;
width: 100%;
}
.foot{background:#999; width:100%;clear:both}
</style>按照上述的代码,写完后会出现right宽度溢出。根据我理解,因为left的宽是定值,所以left可以是用float或者绝对定位,而right需要自适应宽度,应该是100%-200px,那么这个应该如何用css表达?