css移动端单位转换 px 转rem

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Sensation_cyq/article/details/80689070
(function (a, d) {
    var b = a.documentElement, e = "onorientationchange" in window ? "onorientationchange" : "resize", c = function () {
        var a = b.clientWidth;
        a && (b.style.fontSize = 750 <= a ? "100px" : a / 750 * 100 + "px")
    };
    a.addEventListener && (d.addEventListener(e, c, !1), a.addEventListener("DOMContentLoaded", c, !1));
})(document, window);
阅读更多

没有更多推荐了,返回首页