CSS 前缀

参考

https://www.zhihu.com/question/20597072

https://developer.mozilla.org/zh-CN/docs/Glossary/Vendor_Prefix

主流浏览器引擎前缀

  • -webkit-(谷歌,safari,新版 Opera 浏览器,以及几乎所有 iOS 系统中的浏览器(包括 iOS 系统中的火狐浏览器);基本上所有基于 webkit 内核的浏览器)
  • -moz-(火狐浏览器)
  • -o-(旧版 Opera 浏览器)
  • -ms-(IE 浏览器和 Edge 浏览器)

示例:

1
2
3
4
5
-webkit-transition: all 4s ease;
-moz-transition: all 4s ease;
-ms-transition: all 4s ease;
-o-transition: all 4s ease;
transition: all 4s ease;