js页面滚动定位

$(".navigation").children().eq(0).click(function() {
$("html, body").animate({scrollTop: $(".footer").offset().top }, {duration: 500,easing: "swing"});
return false;
document.getElementById("divId").scrollIntoView();
});

 

https://www.cnblogs.com/ictlight-moving-on-1/p/5753785.html

posted @ 2017-11-25 10:32  dontes  阅读(526)  评论(0编辑  收藏  举报