//安装脚手架
npm install postcss-cli autoprefixer --save-dev
// postcss.config.js
module.exports = {
plugins: {
autoprefixer: {}
}
}
某些旧浏览器可能不支持某些CSS样式和属性。为了解决这个问题,我们可以使用autoprefixer等工具自动添加兼容性前缀。

//安装脚手架
npm install postcss-cli autoprefixer --save-dev
// postcss.config.js
module.exports = {
plugins: {
autoprefixer: {}
}
}
某些旧浏览器可能不支持某些CSS样式和属性。为了解决这个问题,我们可以使用autoprefixer等工具自动添加兼容性前缀。