不同手机的分辨率不同,获取不同手机屏幕的大小
var widthSize = window.innerWidth * window.devicePixelRatio;
var heightSize = (window.innerWidth * window.devicePixelRatio * 4) / 3;
不同手机的分辨率不同,获取不同手机屏幕的大小
var widthSize = window.innerWidth * window.devicePixelRatio;
var heightSize = (window.innerWidth * window.devicePixelRatio * 4) / 3;