我如何在带有PhpStorm的CSS中使用自动前缀?

问题描述 投票:0回答:1

例如,当我编写box-sizing,然后输入显示所有前缀代码时,我想使用自动前缀创建CSS代码:

  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
javascript html css ide phpstorm
1个回答
0
投票

正如在this comment中所写的那样,不存在对自动前缀的内置支持,并且在不久的将来几乎无法预期。如果错过了,请投票给WEB-37

您可以安装autoprefixernpm install postcss-cli autoprefixer -g)并将其设置为file watcher,例如:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.