css中单位同一使用rem
let html = document.documentElement,
windowWidth = html.clientWidth;
html.style.fontSize = windowWidth / 120 + 'px';
css中单位同一使用rem
let html = document.documentElement,
windowWidth = html.clientWidth;
html.style.fontSize = windowWidth / 120 + 'px';