╱🚧 under construction -> top, bottom, left, right
CSS ⟩ layout ⟩ position ⟩ positioned ancestor
positioned ancestor
當元素的 position 設定為 relative 或 absolute 時,會被它的子元素視為「定位父元素」 (positioned ancestor)。
position
relative
absolute
最靠近定位子元素的「定位父元素」稱為「最近定位父元素」。
Last updated 9 months ago
Was this helpful?