JQuery 页面滚动至指定元素位置

 

$(window).scrollTop($("#id").offset().top - 20);

 

posted @ 2021-08-23 11:19    阅读(570)  评论(0编辑  收藏  举报