scrollBy Method :Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offsetwindow.scrollBy(iX, iY)
------------------------------------------------------------------
scrollTo Method: Scrolls the window to the specified x- and y-offsetwindow.scrollTo(iX, iY)--------------------------------------------------------------------
scroll Method  Causes the window to scroll to the specified x- and y-offset at the upper-left corner of the window. window.scroll(iX, iY)

解决方案 »

  1.   

    1、Widow.Scroll():在窗口或框架内调整一个文档的滚动方式。Window.Scroll()方法的最佳使用是当你希望用户位于文档中的基础位置时,把它作为文档内的垂直滚动(window.scroll(0,0))的一种手段。
    2、Window.ScrollBy()方法采用文档的相对位移。是Window.Scroll()方法的新版本。
    Window.ScrollBy(0,window,innerHeight)
    3、Window.ScrollTo()与Window.Scroll()方法没有太大的区别。