Because that's the way it's supposed to work. As MDN states: offsetTop returns the distance of the current element relative to the top of the offsetParent ...
確定! 回上一頁