网站首页
编程语言
数据库
系统相关
其他分享
编程问答
minPixelValue
2024-07-31
vue3屏幕适配
通过两个插件来实现 postcss-pxtorem和 amfe-flexible 在main.js中导入import"amfe-flexible";在vite.config.js中配置css:{postcss:{plugins:[postcssPxtoRem({rootValue:192,//根据使用的ui组件?定义根元素大小?