用jQuery自动滚动到页面底部 [英] auto scroll to bottom of page with jquery

查看:49
本文介绍了用jQuery自动滚动到页面底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何使用jQuery自动滚动到页面底部,因为我请求xmlhttp更新页面内容

How can i auto scroll to bottom of page with jquery becuase i am requesting xmlhttp to update content of page

推荐答案

在每种情况下都可以使用,无需在其中添加荒谬"的数字:

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

$(document).scrollTop($(document).height());

这篇关于用jQuery自动滚动到页面底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆