element.offsetParent為包含element的祖先元素中,層級最近的定位元素。 也就是說,offsetParent必須滿足三個條件: ... 由此可見,box祖先元素中存在:.
確定! 回上一頁