【jQuery】.position().offset()の違い

結論

The .position() method allows us to retrieve the current position of an element (specifically its margin box) relative to the offset parent (specifically its padding box, which excludes margins and borders). Contrast this with .offset(), which retrieves the current position relative to the document.

.position() | jQuery API Documentationから引用