元素在当前窗口可视的区域---Element.scrollIntoView()

element.scrollIntoView(); // 等同于element.scrollIntoView(true) 
element.scrollIntoView(alignToTop); // Boolean型参数 
element.scrollIntoView(scrollIntoViewOptions); // Object型参数
posted @ 2019-09-24 10:18  小心走火  阅读(427)  评论(0编辑  收藏  举报