AKS (3) 在AKS中使用Azure File
阿新 • • 發佈:2021-06-28
移動端專案可以用postcss-pxtorem外掛將px轉換為rem單位
1. npm ipostcss-pxtorem -D // 安裝
2. 修改配置檔案 postcss.config.js
module.exports={ plugins:{ 'autoprefixer':{ browsers:['Android>=4.0','iOS>=7'] }, 'postcss-pxtorem':{ rootValue:16,//結果為:設計稿元素尺寸/16,比如元素寬320px,最終頁面會換算成20rem propList:['*'] } } }3. main.js 新增對根元素字型的大小設定,來達到適配多倍圖的效果