$(document).height();文档高度

$(document).height();//文档高度

$(window).height();//是文档窗口高度

$("div").offset().top//是标签距离顶部高度

$(window).scrollTop();//是滚动条高度 和$(document).scrollTop()效果一样 但是$(window).scrollTop() 兼容性好

$(".footer").height();//是标签高度

猜你喜欢

转载自blog.csdn.net/Alisa_vc/article/details/82527621