offsetTop 的指涉的概念大概就像上圖這樣 offsetParent 所在的位置可以透過 targetElement.offsetParent 來查詢. offsetParent 就是擁有 position: ...
確定! 回上一頁