Skip to content

position属性的作用 ​

​

​

relative、absolute、fixed这三个属性值有一个共同点,都是相对于某个基点的定位,不同之处仅仅在于基点不同。

relative ​

设置

fixed ​

设置

​

设置