js:
document.documentElement.clientWidth;
document.documentElement.clientHeight;
window.innerWidth
window.innerHeight
jq:
$(window).height();//浏览器当前窗口可视区域高度
$(document).height();//浏览器当前窗口文档的高度
$(document.body).height();//浏览器当前窗口文档body的高度
$(document.body).outerHeight(true);//浏览器当前窗口文档body的总高度 包括border padding margin
$(window).width();//浏览器当前窗口可视区域宽度
$(document).width();//浏览器当前窗口文档对象宽度
$(document.body).width();//浏览器当前窗口文档body的高度
$(document.body).outerWidth(true);//浏览器当前窗口文档body的总宽度 包括border padding margin