格式化代码

parent 3ccf1348
......@@ -30,13 +30,7 @@ class DevicePixelRatio {
t._bodyScale()
}
_bodyScale() {
let flag = false;
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf("windows") >= 0) {
flag = true;
}
if (flag) {}
var scale = window.screen.width / 1920*1.25; // 分母——设计稿的尺寸
var scale = window.screen.width / 1920 * 1.25; // 分母——设计稿的尺寸
document.getElementById('main').style.zoom = scale; //放大缩小相应倍数
}
//监听页面缩放
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment