Element.scrollIntoView()的应用

Element.scrollIntoView(object) 方法让当前的元素滚动到浏览器窗口的可视区域内

参数为

{
    behavior: "auto"  | "instant" | "smooth",
    block:    "start" | "end",
}



    
    
    
    Document



    

 

你可能感兴趣的:(html,javascript)