摘要: 1、scrollIntoView scrollIntoView 方法可以让当前的元素滚动到浏览器窗口的可视区域内。它的使用方法如下: var element = document.getElementById("box"); element.scrollIntoView(); 这个 api 兼容 I 阅读全文
posted @ 2022-10-12 10:48 webnote 阅读(668) 评论(0) 推荐(0) 编辑