谢谢!

解决方案 »

  1.   

    Causes the object to scroll into view, aligning it either at the top or bottom of the window. Syntaxobject.scrollIntoView( [bAlignToTop])
    ParametersbAlignToTop Optional. Boolean that specifies one of the following values: true Default. Scrolls the object so that top of the object is visible at the top of the window. 
    false Scrolls the object so that the bottom of the object is visible at the bottom of the window.  
     Return ValueNo return value.ResThe scrollIntoView method is useful for immediately showing the user the result of some action without requiring the user to manually scroll through the document to find the result.Depending on the size of the given object and the current window, this method might not be able to put the item at the very top or very bottom, but will position the object as close to the requested position as possible.
      

  2.   

    可以放一个隐藏的元素到页面底部  然后用object.scrollIntoView( false)