简体   繁体   English

如何使用扩展自动前缀?

[英]How to use the extension Autoprefixer?

I installed the AutoPrefixer plugin, trying to run it but it doesn't work.我安装了 AutoPrefixer 插件,试图运行它但它不起作用。

I'm highlighting all of my CSS, then hit command pallet, then hit AutoPrefixer:run.我突出显示我的所有 CSS,然后点击命令托盘,然后点击 AutoPrefixer:run。

Nothing happens.没发生什么事。 Am I missing a step?我错过了一步吗?

Add this below section in settings.json for Autoprefixer -settings.json为 Autoprefixer 添加以下部分 -

"autoprefixer.options": {
    "browsers": [
        "last 4 versions",
        "ie >= 9",
        "> 5%"
    ]
}

and hit AutoPrefixer:run as you do before and it will work.并点击AutoPrefixer:run就像你之前做的那样,它会工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM