移动端布局 根元素的计算
var deviceW;
function computed() {
deviceW = document.documentElement.clientWidth || document.body.clientWidth;
if (deviceW > 750) return;
document.documentElement.style.fontSize = (deviceW / 750) * 100 + "px";
}
computed();
window.addEventListener("resize", function () {
computed();
}, false);

浙公网安备 33010602011771号