67

不依赖relative的绝对定位absolute

 5 years ago
source link: https://juejin.im/post/5afbdc68518825429d1f7a6b
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
在没有深入了解absolute之前,我在使用absolute定位属性的时候,一直都是会给父元素或者祖先元素设置position:relative定位属性,以及设置absolute定位元素的top/right/bottom/left的方向值,有的时候甚至设置层级

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK