JS JQUERY實現滾動條自動滾到底的方法

 

$(function(){io

  var h = $(document).height()-$(window).height();function

  $(document).scrollTop(h);scroll

});document

 

\onload

 

 

window.onload = function(){

  var h = document.documentElement.scrollHeight || document.body.scrollHeight;

  window.scrollTo(h,h);

}

相關文章
相關標籤/搜索