简体   繁体   English

如何自动将浏览器前缀添加到 CSS3 属性?

[英]How to automatically add browser prefix to CSS3 properties?

As you may be know, because CSS3 is not compatible with all of browsers when we use CSS3 we should add a prefix to CSS3 properties (like -moz, -webkit, -o and ...)您可能知道,因为 CSS3 与所有浏览器不兼容,所以当我们使用 CSS3 时,我们应该为 CSS3 属性添加前缀(如 -moz、-webkit、-o 和 ...)

It is difficult to write these prefixes manually.手动编写这些前缀很困难。 So, is there any plugin, program or another thing to detect CSS3 properties in my CSS file and append necessary vendor prefixes to those properties ?那么,是否有任何插件、程序或其他东西可以检测我的 CSS 文件中的 CSS3 属性并将必要的供应商前缀附加到这些属性?

There are several options that come to mind, depending on your use-case:根据您的用例,您可以想到几个选项:

My personal preference is to use Compass, but the Emmet abbreviations work well if you do not want the overhead of using a CSS pre-processor.我个人的偏好是使用 Compass,但如果您不想要使用 CSS 预处理器的开销,Emmet 缩写就可以很好地工作。

一个好的供应商名称混入这样做,在上海社会科学院这里为那些正在使用SASS

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

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