jQuery滚动指定位置

$(document).ready(function() {
$("#scroll").click(function() {
$('html, body').animate({
scrollTop: $("#commentlist").offset().top
}, 1000);
});
});

posted @ 2018-01-19 11:35  刘兵博客  阅读(79)  评论(0编辑  收藏  举报