document.documentElement.style.fontSize = 100 * window.innerWidth / 750 + 'px';
window.addEventListener("resize", () => {
document.documentElement.style.fontSize = 100 * window.innerWidth / 750 + 'px';
})
rem两段话兼容H5 REM
猜你喜欢
转载自blog.csdn.net/qq_38850058/article/details/85232316
今日推荐
周排行