摘要: 使用 scrollIntoView 实现锚点平滑跳转 html <button class="btn">跳转</button> <!-- ... --> <div class="container">锚点区域</div> js document.querySelector('.btn').oncli 阅读全文
posted @ 2019-04-25 15:11 时光凉忆 阅读(1848) 评论(0) 推荐(0)