标签:
视口的宽和高
var pw = window.innerWidth, ph = window.innerHeight; if(typeof pw != "number"){ pw = document.documentElement.clientWidth; ph = document.documentElement.clientHeight; } console.log(pw,ph);
标签:
原文地址:http://www.cnblogs.com/xupeiyu/p/4677252.html