查找整页高度 [英] Finding full page height

查看:228
本文介绍了查找整页高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在firefox中使用window.scrollYMax获取最大滚动,并使用window.scrollY查找离页面底部的距离,以便可以加载更多的供稿.问题是window.scrollYMax在Firefox之外无法正常工作!救命!

I used window.scrollYMax in firefox to get the max scroll, and used window.scrollY to find how close I was to the bottom of the page so that I could load more feeds. Problem is window.scrollYMax doesn't work outside of firefox! Help!

推荐答案

这些属性是特定于Firefox的.该页面很好地解释了哪些浏览器支持什么: http://www.quirksmode.org/dom /w3c_cssom.html .

Those properties are Firefox-specific. This page gives a good explanation of what browsers support what: http://www.quirksmode.org/dom/w3c_cssom.html.

您可能正在寻找:

x.scrollWidth
x.scrollHeight

这篇关于查找整页高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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