JS中height、clientHeight、scrollHeight、offsetHeight區別

$(window).height();//是文檔窗口高度 $("div").offset().top//是標籤距離頂部高度 $(document).scrollTop();//是滾動條高度$("div").height();//是標籤高度你要的高度+$("div").height()+[$("div").offset().top-$(document).scrollTop()]=$(window)
相關文章
相關標籤/搜索