rem两段话兼容H5 REM

document.documentElement.style.fontSize = 100 * window.innerWidth / 750 + 'px';
window.addEventListener("resize", () => {
    document.documentElement.style.fontSize = 100 * window.innerWidth / 750 + 'px';
})

猜你喜欢

转载自blog.csdn.net/qq_38850058/article/details/85232316
rem