开发者

jquery get and set document offset (or 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜