h4 { position: absolute; left: 100px; top: 43px; }
元素相對於**包含區塊**定位,預設為最近的非 static 祖先,否則為 <html>(初始包含區塊)。
left / right:距離包含區塊左/右邊界。top / bottom:距離包含區塊上/下邊界。任何元素:段落、文字、圖片、影片、iframe、Canvas 等。
z-index 顯式控制。fit-content。left:0; right:0; margin:auto; 需指定寬度。width/height 才能正確用 right/bottom 定位。zoom:1 修復)。許多絕對定位場景可用 Flexbox / Grid 更簡潔實現(如置中、對齊、堆疊),保留文檔流優勢。