开发者

jquery get and set document offset (or position?)

开发者 https://www.devze.com 2023-01-26 18:45 出处:网络
how is possible to get my actual document scroll and then set it after some event ? I would like to开发者_如何学Go get how my page is scrolled and after some event come back to this position.

how is possible to get my actual document scroll and then set it after some event ? I would like to开发者_如何学Go get how my page is scrolled and after some event come back to this position. thnk


You can use $(window).scrollTop() to get the current vertical scroll and set it with $(window).scrollTop(value) as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号