手机字体大小 px - rem javascript 换算

it2022-05-09  40

(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

相关资源:数据结构—成绩单生成器

最新回复(0)