一、JS獲取屏幕高度、寬度
var height=window.innerHeight||Math.max(document.documentElement.clientHeight, document.body.clientHeight);
var width=window.innerWidth||Math.max(document.documentElement.clientWidth, document.body.clientWidth);
二、JQuery獲取屏幕高度、寬度
var height = $(window).height();
var width = $(window).width();