(document).height()、$(document).scrollTop()

前端之家收集整理的这篇文章主要介绍了(document).height()、$(document).scrollTop()前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
                                            <table class="text"&gt;<tbody><tr class="li1"&gt;

<td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

=(document).height()−(window).height() 就可以知道已经滚动到底端了   height:指元素内容的高度 ,jQuery中的height()方法返回的就是这个高度。 clientHeight:内容高度+padding高度 ,jQuery中的innerHeight()方法返回的就是这个高度。 offsetHeight:内容高度+padding高度+边框宽度 ,jQuery中的outerHeight()方法返回的就是这个高度。

猜你在找的程序笔记相关文章