一、使用 lib-flexible 动态设置 REM 基准值(html 标签的字体大小) 1、安装 npm i amfe-flexible 2、然后在 main.js 中加载执行该模块 import 'amfe-flexible'