The Element.scrollIntoView()
method scrolls the current element into the visible area of the browser window. Parameters can be provided to set the position inside the visible area as well as whether scrolling should be instant or smooth.
可引入smoothscroll.js解决兼容问题。