获取当前窗口宽高 兼容ie var _height=window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;//获取当前窗口的高度 var _width=window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; //width
$('.pic li').css('width',_width+'px').css('height',_height+'px');//调整列表的宽高
//获取当前窗口的宽度
转载于:https://my.oschina.net/jiuban/blog/813306