我給main設置了相對定位 為什么left偏移的時候還是參考body 才能實現效果
.top{height:50px;background:grey;}
.main{background:red;width:100%;height:300px;postion:relative;}
.left{width:200px;height:300px;position:absolute;top:50px;background:blue;
}
.right{background:green;postion:absolute;margin-left:210px;height:300px;}
.foot{margin:0 auto;background:pink;clear:both;}
2016-04-19
這樣設置是對的啊,不過你的top:50px寫太大了,寫top:0;就好了