请教高手:如何判断上下滚动条是否滚动到页面最下方?

xlray 2003-10-10 11:44:12
document.body.clientHeight
document.body.scrollHeight
document.body.scrollTop
到底是指哪些东西的长度,最好能截图讲解一下。
还有其他的变量吗?
...全文
154 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhfkiller 2003-10-11
  • 打赏
  • 举报
回复
scrollHeight的例子
http://msdn.microsoft.com/workshop/samples/author/dhtml/refs/scrollHeight.htm
zhfkiller 2003-10-11
  • 打赏
  • 举报
回复
scrollTop的例子
http://msdn.microsoft.com/workshop/samples/author/dhtml/refs/scrollTop.htm
zhfkiller 2003-10-11
  • 打赏
  • 举报
回复
clientHeight

--------------------------------------------------------------------------------

Retrieves the height of the object including padding, but not including margin, border, or scroll bar.


scrollHeight

--------------------------------------------------------------------------------

Retrieves the scrolling height of the object.


scrollTop

--------------------------------------------------------------------------------

Sets or retrieves the distance between the top of the object and the topmost portion of the content currently visible in the window.


xlray 2003-10-11
  • 打赏
  • 举报
回复
难道是我英语太差?
这种说明书式的解释建立在知道其中那些概念的基础上的。
通俗的说法就是“明白的就是明白,不明白的还是不明白。”
我看了还是觉得不明白,难道有谁是从不明白到明白的吗?
如果有图片加说明多好啊~哪位高人传个道啊~
longshenwang 2003-10-11
  • 打赏
  • 举报
回复
UP

87,987

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧