Absolute .position() value

This question already has an answer here:

  • Retrieve the position (X,Y) of an HTML element 23 answers

  • From the jquery docs:

    The .position() method allows us to retrieve the current position of an element relative to the offset parent. Contrast this with .offset(), which retrieves the current position relative to the document.

    http://api.jquery.com/position/

    So use .offset() .

    链接地址: http://www.djcxy.com/p/15602.html

    上一篇: 获取所有div的位置

    下一篇: 绝对.position()值