,關于這一節,我的答案:
top{width:960px;height:100px;background:#ccc;margin:0 auto;}
.main{width:960px;height:400px;background:#fff;margin:0 auto;}
.left{ width:220px;height:400px;background:blue;float:left;}
.right{width:740px;height:400px;background:green;float:right}
.abc{width:240px;height:400px;background:red;float:left;}
.foot{width:960px;height:100px;background:#000;clear:both;margin:0 auto;}
2016-07-08
不用添加abc類的,.left+.right<.main的width,就是要的效果,顯示的是.main的背景顏色。