Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

Browser vendors sometimes add prefixes to experimental or nonstandard CSS properties, so developers can experiment but changes in browser behavior don't break the code during the standards process. Developers should wait to include the unprefixed property until browser behavior is standardized.

Browser vendors try to get rid of vendor prefix for experimental features. They noticed that Web developers were using them on production Web sites, polluting the global space, and making it more difficult for underdogs to perform well (prefixed version are only added for major browsers and the unprefixed version is often forgotten, if not broken).

Lately, the trend is to add experimental feature behind user-controlled flags and to work on smaller specifications that reaches stability much quicker.

Typically the vendors use these prefixes:

  • -webkit- (Chrome, Safari, newer versions of Opera.)
  • -moz- (Firefox)
  • -o- (Old versions of Opera)
  • -ms- (Internet Explorer)

Vendors also use prefixes on API. On interfaces, they typically use:

  • Webkit (Chrome, Safari, newer versions of Opera.)
  • Moz (Firefox)
  • O (Old versions of Opera)
  • MS (Internet Explorer)

On properties and methods, they typically use:

  • webkit (Chrome, Safari, newer versions of Opera.)
  • moz (Firefox)
  • o (Old versions of Opera)
  • ms (Internet Explorer)

Learn more

General knowledge

文档标签和贡献者

 最后编辑者: chrisdavidmills,