//閫傞厤鍏煎 if (window.ActiveXObject || "ActiveXObject" in window) { alert("鎮ㄧ殑娴忚鍣ㄧ増鏈繃浣庯紝寤鸿浣跨敤edge锛?60鏋侀€熸ā寮忥紝firefox锛宑hrome绛夋祻瑙堝櫒璁块棶銆?) } document.getElementsByTagName('body')[0].style.zoom = '100%' var windowWidth = window.innerWidth if (windowWidth > 1700) { document.getElementsByTagName('body')[0].style.zoom = '100%' } else if (windowWidth > 1300) { document.getElementsByTagName('body')[0].style.zoom = '80%' } else { document.getElementsByTagName('body')[0].style.zoom = '60%' } localStorage.setItem("bodyZoom",document.getElementsByTagName('body')[0].style.zoom) // window.onload = function () { // setTimeout(() => { // const windowWidth = window.innerWidth // if (windowWidth > 1745) { // document.getElementsByTagName('body')[0].style.zoom = '100%' // } // else if (windowWidth > 1500) { // document.getElementsByTagName('body')[0].style.zoom = '80%' // } else { // document.getElementsByTagName('body')[0].style.zoom = '65%' // } // }, 0) // }