設置頁面載入時滾動條自動滾到底的方法:jQuery:$(function(){ var h = $(document).height()-$(window).height(); $(document).scrollTop(h);});JavaScript:window.onload = func.....
設置頁面載入時滾動條自動滾到底的方法:
jQuery: $(function(){ var h = $(document).height()-$(window).height(); $(document).scrollTop(h); }); JavaScript: window.onload = function(){ var h = document.documentElement.scrollHeight || document.body.scrollHeight; window.scrollTo(h,h); }