請大神解答?
#content{position:absolute; top:0; margin-left:200px;}中的margin是有效的,而#content{margin-left:200px;position:absolute; top:0;}中的margin是無效的?
#content{position:absolute; top:0; margin-left:200px;}中的margin是有效的,而#content{margin-left:200px;position:absolute; top:0;}中的margin是無效的?
2016-07-19
舉報
2016-09-13
首先我想說的是,問問題之前其實可以自己實踐一下,總共也就幾行代碼的事。我試的結果是都有效。
2016-07-19
都有效,不過效果不一樣。前者是content定位后再產生邊距;后者是content本身的先產生邊距再去定位