How to automatically add browser prefix to CSS3 properties?

后端 未结 3 925
北海茫月
北海茫月 2021-01-21 01:11

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 ...)

It is

3条回答
  •  梦谈多话
    2021-01-21 01:39

    There are several options that come to mind, depending on your use-case:

    • SASS with Bourbon
    • SASS with Compass
    • Less with LESS elements

    • Emmet CSS3 Abbreviations (In your text editor)

    • PrefixFree (client side js)

    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.

提交回复
热议问题