.....
....
....
<input id=goHere value="滚动到我这里" onclick="this.scrollIntoView()">

解决方案 »

  1.   

    scrollTo Method--------------------------------------------------------------------------------Scrolls the window to the specified x- and y-offset. Syntaxwindow.scrollTo(iX, iY)
    ParametersiX Required. Integer&#61007;hat specifies the horizontal scroll offset, in pixels. 
    iY Required. Integer&#61007;hat specifies the vertical scroll offset, in pixels. Return ValueNo return value.ResThe specified offsets are relative to the upper-left corner of the window.scroll Method--------------------------------------------------------------------------------Causes the window to scroll to the specified x- and y-offset at the upper-left corner of the window. Syntaxwindow.scroll(iX, iY)
    ParametersiX Required. Integer&#61007;hat specifies the horizontal scroll offset, in pixels. 
    iY Required. Integer&#61007;hat specifies the vertical scroll offset, in pixels.  Return ValueNo return value.ResThis method is provided for backward compatibility only. The recommended way to scroll a window is to use the scrollTo method. scrollBy Method--------------------------------------------------------------------------------Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset. Syntaxwindow.scrollBy(iX, iY)
    ParametersiX Required. Integer&#61007;hat specifies the horizontal scroll offset, in pixels. Positive values scroll the window right, and negative values scroll it left. 
    iY Required. Integer&#61007;hat specifies the vertical scroll offset, in pixels. Positive values scroll the window down, and negative values scroll it up. Return ValueNo return value.
      

  2.   

    先试一下这个,再说嘛
    .....
    ....
    ....
    <input id=goHere value="滚动到我这里" onclick="this.scrollIntoView()">