锚点跳转的方式

1.利用a标签 2.屏幕滚动 ①html设置 ②js代码 // 锚点跳转 function goToEle() { var $index = $(this).index(); $("html, body").animate({ scrollTop: $("#scrolltop-" + $index).offset().top
相关文章
相关标签/搜索