JS中height、clientHeight、scrollHeight、offsetHeight区别

$(window).height();//是文档窗口高度 $("div").offset().top//是标签距离顶部高度 $(document).scrollTop();//是滚动条高度$("div").height();//是标签高度你要的高度+$("div").height()+[$("div").offset().top-$(document).scrollTop()]=$(window)
相关文章
相关标签/搜索