vue3+vite项目h5/web配置浏览器自适应适配(postcss-px-to-viewport-8-plugin)
注意,项目中不要写行内样式vue3+vite项目配置适配H5主要安装一下两个插件:amfe-flexible(主要用于动态设置根元素字体大小(rem),以根据屏幕尺寸进行自适应布局)postcss-px-to-viewport-8-plugin(将px单位转换为rem)开始配置:第一步、安装amfe-flexible插件cnpminstallamfe-flexible--save第二步、在main