document.body.scrollTop = document.body.scrollHeight;

解决方案 »

  1.   

    <body onload="window.scrollTo(0,document.body.scrollHeight)">
      

  2.   

    2。刷新后滚动条位置不边  ===>>> ?刷新后滚动条位置会变吗?
    你把滚动条拉到中间,刷新,看看,滚动条还是在中间的吧。<body onload="window.scrollTo(0,document.body.scrollHeight)">
    ....
    ....
    <script>window.scrollTo(0,document.body.scrollHeight);</script>
    </body>
      

  3.   

    scrollIntoView 将对象滚动到可见范围内,将其排列到窗口顶部或底部。 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.  
     
    在最下边加一下<div id="divscroll"></div>
    然后body 的 onload 写 divscroll.scrollIntoView(true);