Is there a way, using jQuery, I 开发者_StackOverflow中文版can slide to the bottom of the page I am currently on? Thanks.
You may checkout the following article:
$('#scrlBotm').click(function () {
$('html, body').animate({
scrollTop: $(document).height()
}, 1500);
return false;
});
you may use this code.
$('html, body').animate({scrollTop: $("body").height()}, 800);
You can do this:
$(document).scrollTop($(document).height());
If you wanted it on click:
$('#btn').click(function() {
$(document).scrollTop($(document).height());
});
See demo 1 and demo 2
精彩评论