该浏览器不支持canvas

scrollIntoView:实现点击跳转锚点

(选定dom元素).scrollIntoView(true);

比如document.getElementById('div1').scrollIntoView(true);

posted @ 2020-12-04 01:47  真是啰嗦  阅读(257)  评论(0)    收藏  举报