關于三列布局的一些問題
body{margin:0;padding:0;font-size:?50px;} .top{height:100px;background:green;} .main{height:?400px;background:?red;} .left{width:200px;height:?400px;background:?lime;position:absolute;left:?0;top:100px;} .right{height:?400px;background:?maroon;margin-left:210px;} .foot{height:100px;background:fuchsia;}
我這樣也是能到實踐的效果。但是為什么rigth{}里不用加right:0;top:100px?
2017-01-06
"margin-left:210px;"可以使.right DIV右移210px,已達到實踐的效果.
position:abosolute;right:0;top:100px;也能達到同樣的效果.
要實現同一種效果,可能有好多種方式,選擇自己認為較優的即可.
2016-12-06
你的.right又沒有使用絕對定位,為什么要加絕對定位的屬性呢?
2016-12-02
top的默認值是0;
margn-left:是右框到左邊的距離(左邊框寬度200px,中間留10px)