<div class="codetitle"> <span><a style="CURSOR: pointer" data="98301" class="copybut" id="copybut98301" onclick="doCopy('code98301')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code98301"> <br>$("html").scrollTop(4000) <br> </div> <br>這裡的4000設成比body高度要大的值,這個方法還是比較準確的<br><div class="codetitle"> <span><a style="CURSOR: pointer" data="90015" class="copybut" id="copybut90015" onclick="doCopy('code90015')"><u>複製代碼</u></a></span>程式碼如下:</div> <div class="codebody" id="code90015"> <br>scrollTo (0,document.height ||document.body.style.height) <br> </div>