在HTML中,offsetParent屬性用於返回元素的最接近的祖先。返回的祖先的位置必須不是靜態的。如果將元素設置為display =“ none”,則offestParent屬性將返回null值。
確定! 回上一頁