$(document).scrollTop以像素为单位关闭?

时间:2014-04-26 11:33:49

标签: jquery google-chrome scrolltop

在一个相当复杂的布局页面中,我可以在chrome控制台中执行此操作:

$(document).scrollTop(800)
[#document]
$(document).scrollTop()
800
$(document).scrollTop(801)
[#document]
$(document).scrollTop()
800
$(document).scrollTop(802)
[#document]
$(document).scrollTop()
801
$(document).scrollTop(799)
[#document]
$(document).scrollTop()
798

我做错了什么?如何让事物滚动到想要的地方?

0 个答案:

没有答案