特牛生活网

jQuery实现平滑滚动到指定锚点的方法_jquery楼层锚点滚动_华宇AI的博客-CSDN博客

网友收藏
文章浏览阅读564次。$(document).ready(function() { $("a.topLink").click(function() { $("html, body").animate({ scrollTop: $($(this).attr("href")).offset().top + "px" }, { duration: 500, easing: "swing" }); return false; });});_jquery楼层锚点滚动