前端在js中获取1rem的值 CoderWeen 2022-06-17 681 阅读1分钟 /*获取rem单位*/ const rem = parseInt(getComputedStyle(document.documentElement).fontSize)