已采纳回答 / 慕勒4413983
.main{width:100%;height:600px;background:#00F; position:relatve}.left{ width:200px;height:600px;background:#3CC; ;top:0; left:0}.right{width:80%;height:600px;background:#F33; margin-left:210px;position:absolute}可以回顾一下相对定位与绝对定位
2016-12-01
已采纳回答 / Hbrsql
"margin-left:210px;"可以使.right DIV右移210px,已达到实践的效果.position:abosolute;right:0;top:100px;也能达到同样的效果.要实现同一种效果,可能有好多种方式,选择自己认为较优的即可.
2016-12-01
.head,.main{ width:960px; margin:0 auto;}
.left{ width:220px; height:600px; background:#ccc;float:left;}
.r_sub_right{ width:200px; height:600px; background:#9FC;float:right;}
.footer{ height:50px; background:#9F9; margin:600px 0 0 0;}
或.footer{ height:50px; background:#9F9; clear:both;}
.left{ width:220px; height:600px; background:#ccc;float:left;}
.r_sub_right{ width:200px; height:600px; background:#9FC;float:right;}
.footer{ height:50px; background:#9F9; margin:600px 0 0 0;}
或.footer{ height:50px; background:#9F9; clear:both;}