2011-08-04 160 views

回答

3

尼斯流畅的动画使用jQuery:

$("html, body").animate({scrollTop : $("form#comment").offset().top}, "fast"); 
1

查找元素x,y位置和使用window.scrollTo(x, y)

0
<a name="ScrollTo"></a> 

<a href="#ScrollTo">Comments Link</a> 
3

可以滚动到通过ID或任何jQuery的selecter的特定点。 check this :

相关问题