!function(e, t) { if (window.mobile) return; function n() { t.body ? t.body.style.fontSize = 12 * o + "px" : t.addEventListener("DOMContentLoaded", n) } function d() { //var e = i.clientWidth / 10; //许钟文 改 将width的影响减少,height的影响增多 var ratio = i.clientWidth / i.clientHeight; var a = 1; if(i.clientWidth > 560 && ratio>1.2 ) a = 0.625 / Math.pow(ratio,0.5) else if(i.clientWidth > 500 && ratio>0.8) a = ratio / Math.pow(ratio,0.7) else if(i.clientWidth > 400 && ratio>0.7) a = ratio / Math.pow(ratio,0.7) var e = i.clientWidth / 10 * a ; i.style.fontSize = e + "px" } var i = t.documentElement , o = e.devicePixelRatio || 1; if (n(), d(), e.addEventListener("resize", d), e.addEventListener("pageshow", function(e) { e.persisted && d() }), o >= 2) { var a = t.createElement("body") , s = t.createElement("div"); s.style.border = ".5px solid transparent", a.appendChild(s), i.appendChild(a), 1 === s.offsetHeight && i.classList.add("hairlines"), i.removeChild(a) } }(window, document);