mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +00: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: ['*'],
},
},
};