星期二, 11月 26, 2013

[jQuery] 如何控制scroll到指定的元素位置

今天剛好用到順便記錄一下,這個方法不用在使用任何外掛 :D 來源位址: http://stackoverflow.com/questions/832860/how-to-scroll-the-window-using-jquery-scrollto-function
$('html, body').animate({scrollTop: $("#page").offset().top}, 2000);
jQuer

沒有留言:

張貼留言

留個話吧:)

其他你感興趣的文章

Related Posts with Thumbnails