j在mootools中查询$(文件).height()?

0 jquery height mootools document

有一个mootools的快速解决方案,就像来自jquery的$(document).height()?我只是需要真正的文档高度,浏览器独立.

谢谢!

dig*_*ald 8

您需要的所有方法都在Element.Dimensions中:http://mootools.net/docs/core/Element/Element.Dimensions

window.getSize().y 是视口高度.

window.getScrollSize().y 是文档的高度,包括可滚动的隐藏区域.