子元素的 padding margin 百分比都是按照父元素的宽度来计算的。
定位的时候 left right 按照父元素的宽度继承,top bottom 按照父元素的高度继承。
子元素的 padding margin 百分比都是按照父元素的宽度来计算的。
定位的时候 left right 按照父元素的宽度继承,top bottom 按照父元素的高度继承。
本文标题:padding margin position百分比问题
本文链接:https://www.haomeiwen.com/subject/tvaorxtx.html
网友评论