SegmentFault 思否关于js中的offsetTop的距离问题。 The HTMLElement.offsetParent read-only property returns a reference to the element which is the closest (nearest in the containment hierarchy) positioned ancestor element. If there is no positioned ancestor 更多内容请查看https://segmentfault.com/q/1010000023864364