How to automatically add browser prefix to CSS3 properties?

后端 未结 3 885
北海茫月
北海茫月 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:32

    A nice vendor prefix mixin for doing that in SASS here for those that are using SASS

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-01-21 01:49

    Here is more

    Sublimetext plugin https://github.com/sindresorhus/sublime-autoprefixer?source=c

    0 讨论(0)
提交回复
热议问题