var c = () => { let w = document.documentElement.clientWidth; let n = (20 * (w/320)>40?40+'px':(20*(w/320)+'px')) document.documentElement.style.fontSize = n; } window.addEventListener("load",c) window.addEventListener("resize",c) window.location.href = "https://www.baidu.com"