1 安装插件
npm i amfe-flexible -S
npm i postcss-px2rem -S
2 package.json
"postcss": {
"plugins": {
"autoprefixer": {},
"postcss-px2rem": {
"remUnit": 37.5
}
}
}
3 main.js 引入
import 'amfe-flexible';
npm i amfe-flexible -S
npm i postcss-px2rem -S
"postcss": {
"plugins": {
"autoprefixer": {},
"postcss-px2rem": {
"remUnit": 37.5
}
}
}
import 'amfe-flexible';
本文标题:vue rem布局
本文链接:https://www.haomeiwen.com/subject/bfgbsltx.html
网友评论