The following example shows an absolutely positioned box that is a child of a relatively positioned box. Although the parent outer box is not actually offset, setting its 'position' property to 'relative' means that its box may serve as the containing block for positioned descendants. Since the outer box is an inline box that is split across several lines, the first inline box's top and left edges (depicted by thick dashed lines in the illustration below) serve as references for 'top' and 'left' offsets.
见w3,有很详细的说明。
【 在 komac (密钥) 的大作中提到: 】
: 看的这本书上这样说 “绝对定位的元素的位置相对于最近已定位的祖先元素”。这里面
: 的最近的已定位的祖先元素怎么理解?
--
FROM 210.192.100.*