这才对?
.top{width:100%;height:100px;background:gray;}
.main{height:400px;background:red;}
.left{float:left;width:200px;height:400px;background:blue;}
.right{float:right;position:absolute;left:210px;right:0px;height:400px;background:#9c9;}
.foot{width:100%;background:#f63;}
.top{width:100%;height:100px;background:gray;}
.main{height:400px;background:red;}
.left{float:left;width:200px;height:400px;background:blue;}
.right{float:right;position:absolute;left:210px;right:0px;height:400px;background:#9c9;}
.foot{width:100%;background:#f63;}
把绝对定位加在了右边也能用,但是兼容IE6是什么?
.top{width:100%;height:100px;background:gray;}
.main{height:500px;background:red;}
.left{float:left;width:200px;height:500px;background:blue;}
.right{float:right;position:absolute;left:210px;height:500px;width:100%;background:#9c9;}
.foot{width:100%;background:#f63;}
.top{width:100%;height:100px;background:gray;}
.main{height:500px;background:red;}
.left{float:left;width:200px;height:500px;background:blue;}
.right{float:right;position:absolute;left:210px;height:500px;width:100%;background:#9c9;}
.foot{width:100%;background:#f63;}