源自:13-9 Relative与Absolute组合使用
为什么设置bottom:0 box4并没有位于图片最下方,反而设置bottom:41px刚好合适?还有:bottom41px是设置的对于这个box本身上边框线进行更改还是下边框线?


bottom0效果不对,反而41px对???为什么????
提问者:xiaomanm
2016-03-14 17:12
个回答
-
#box3里应该写position:relative;
#box4里写position:absolute;
-
父元素用相对定位position:relative;
要移动的那个元素用绝对定位position:absolute;。