티스토리 뷰

This will work in every case, no need to put a 'ridiculous' number in it:

$(document).scrollTop($(document).height());
shareimprove this answer
   
Nice and simple. – gnarf Dec 27 '09 at 19:47
2 
Doesn't work in "every" case. I tried it and it doesn't quite scroll to the bottom. It was fixed by putting a "slightly less ridiculous" number on the end, so $(document).scrollTop($(document).height()+500); – nathanchere Apr 29 '11 at 4:54
   
This appears to work at first glance, but when the element height gets to a high enough number, the scrolling stops and no longer goes to the bottom without manual intervention. The solution from Gyuri Ambrozy does not experience this issue at any element height I tested. – Daniel Nalbach Jan 21 '15 at 1:58 



[출처] http://stackoverflow.com/questions/1966784/auto-scroll-to-bottom-of-page-with-jquery

저작자 표시 비영리 변경 금지
신고
댓글
댓글쓰기 폼
«   2017/10   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
글 보관함
Total
93,121
Today
133
Yesterday
166