JavaScript代码
  1. $("html,body").animate({scrollTop: $("#box").offset().top}, 1000);   

在底部放一个id是box的标签就可以了。

H5/JS/CSS | 评论(0) | 引用(0) | 阅读(6016)