手机字体大小 px

       (function () {
            function o() {
                document.documentElement.style.fontSize = (document.documentElement.clientWidth  ) / 31.25 + "px"
            }
            var e = null;
            window.addEventListener("resize", function () {
                clearTimeout(e), e = setTimeout(o, 100)
            }, !1), o()
        })(window);
原文地址:https://www.cnblogs.com/kongwei/p/6605355.html