mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
537 B
537 B
Advanced Usage
Browser adaptation
Rem units
Vant use px
as size units by default,you can use tools such as postcss-pxtorem
to transform units to rem
.
PostCSS Config
postcss config example:
module.exports = {
plugins: {
autoprefixer: {
browsers: ['Android >= 4.0', 'iOS >= 8'],
},
'postcss-pxtorem': {
rootValue: 37.5,
propList: ['*'],
},
},
};