.top{height:80px;margin:0 auto;background-color:#ccc}
.main{height:400px;background-color:#f00}
.left{height:400px;width:200px;background-color:#00f;position:absolute;left:0;top:100px}
.right{height:400px;margin-left:210px;background-color:#0f0}
.foot{height:50px;margin:0 auto;background-color:#f60}
.main{height:400px;background-color:#f00}
.left{height:400px;width:200px;background-color:#00f;position:absolute;left:0;top:100px}
.right{height:400px;margin-left:210px;background-color:#0f0}
.foot{height:50px;margin:0 auto;background-color:#f60}
.top,.main{width:600px;margin:0 auto;}
.top{height:100px;;background:#ccc;}
.main{height:500px;background:red;}
.left{height:500px;width:200px;background:blue;float:left;}
.right{height:500px;width:390px;background:#9f9;float:right;}
.foot{height:50px;width:600px;background:#f90;margin:0 auto;}
.top{height:100px;;background:#ccc;}
.main{height:500px;background:red;}
.left{height:500px;width:200px;background:blue;float:left;}
.right{height:500px;width:390px;background:#9f9;float:right;}
.foot{height:50px;width:600px;background:#f90;margin:0 auto;}
.top{height:50px;background:#CCC;}
.mian{height:500px;background:#9CC;}
.left{width:200px;height:500px;background:#C9F;float:left;}
.foot{background:#9CF;}
.mian{height:500px;background:#9CC;}
.left{width:200px;height:500px;background:#C9F;float:left;}
.foot{background:#9CF;}
.top{height:100px;background:grey;}
.main{width:100%;height:600px;background:red;}
.left{width:200px;height:600px;background:blue;float:left;}
.right{width:100%;height:600px;background:lightgreen;position:absolute;left:210px;}
.foot{height:50px;background:orange;clear:both;}
.main{width:100%;height:600px;background:red;}
.left{width:200px;height:600px;background:blue;float:left;}
.right{width:100%;height:600px;background:lightgreen;position:absolute;left:210px;}
.foot{height:50px;background:orange;clear:both;}
最新回答 / 摆渡人_dudu
.r_sub_right{ width:200px; height:600px; background:#9FC;folat:right;} 这行代码中的float拼错了!!
2016-07-18
已采纳回答 / roqiii
不加定位属性position的样式left、top是无效的,既然加了就定个位置。不加是有一点空隙的。.left是mian里面的div,.right就是右面那个divmargin和padding?问什么?盒子模型的结构
2016-07-17