錨點跳轉的方式

1.利用a標籤 2.屏幕滾動 ①html設置 ②js代碼 // 錨點跳轉 function goToEle() { var $index = $(this).index(); $("html, body").animate({ scrollTop: $("#scrolltop-" + $index).offset().top
相關文章
相關標籤/搜索