offsetWidth = width+padding+border
js:var offsetW = document.documentElement.offsetWidth || document.body.offsetWidth;//相容浏覽器
jq:$('body')[0].offsetWidth;
offsetHeight = height+padding+border
js:var offsetH = document.documentElement.offsetHeight || document.body.offsetHeight;//相容浏覽器
jq:$('body')[0].offsetHeight;
clientWidth = width+padding
js:var clientW = document.documentElement.clientWidth || document.body.clientWidth;//相容浏覽器
jq:$('body')[0].clientWidth;
clientHeight = height+padding
js:var clientH = document.documentElement.clientHeight || document.body.clientHeight;//相容浏覽器
jq:$('body')[0].clientHeight;
width() = width+padding 可視螢幕寬,不包括滾動條
$(window).width();
height() = height+padding 可視螢幕高,不包括滾動條
$(window).height();
innerWidth() = width+padding+border+橫向滾動條 整個螢幕寬
$(window).innerWidth();
innerHeight() = height+padding+border+縱向滾動條 整個螢幕高
$(window).innerHeight();
以上是在下拙見,請多多指教