Get the position of a fixed div with jquery

前端 未结 4 2179
伪装坚强ぢ
伪装坚强ぢ 2021-02-07 11:21

I have a div with position \"fixed\" and I want to get the value of its position relative to the whole document while the user scrolls down the page.

So

4条回答
  •  醉酒成梦
    2021-02-07 11:32

    Unless you refresh the page and the scrollbar is at a different position at the moment it initialize.

提交回复
热议问题