Jul
08


2010-07-08 8:30 pm 作者:Codytan

滚到锚点

  1. 1
  1. $("html,body").animate({scrollTop: $("#" + id).offset().top}, 1000);

滚到顶部

  1. 1
  1. $("html,body").animate({scrollTop: $("body").offset().top}, 1000);
推荐(0)
收藏

相关日志

最近读者

最近还没有登录用户看过这篇文章

发表评论: