search

Home  >  Q&A  >  body text

javascript - How to get the distance from an element to the top of the document using jQuery. The height unit of the element is rem.


The value obtained in this way is inaccurate.

某草草某草草2748 days ago1121

reply all(3)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-07-05 10:49:11

    The unit you get in this way is px, converted to rem.

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-07-05 10:49:11

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-07-05 10:49:11

    reply
    0
  • Cancelreply