代码片段
4 行
$(window).height();//是文档窗口高度
$("div").offset().top//是标签距离顶部高度
$(document).scrollTop();//是滚动条高度
$("div").height();//是标签高度
代码片段
1 行
你要的高度+$("div").height()+[$("div").offset().top-$(document).scrollTop()]=$(window).height();