window.addEventListener('resize',function(){
window.curzoom = window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI;
console.log('当前运行比例===',window.curzoom);
})
window.addEventListener('resize',function(){
window.curzoom = window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI;
console.log('当前运行比例===',window.curzoom);
})
本文标题:判断当前浏览器尺寸比例
本文链接:https://www.haomeiwen.com/subject/qxoomdtx.html
网友评论