Browser vendors needed a way to add support for new features that were not yet standardized, but without messing up later changes or creating incompatibles. To solve this issue Vendor Prefixes were created. A vendor prefixes is a special prefix added to a CSS property. Each rendering engine has it's own prefix which will only apply the property to that particular browser.

The major browsers use the following prefixes:

  • -webkit- (Chrome, Safari, newer versions of Opera, almost all iOS browsers (including Firefox for iOS); basically, any WebKit based browser)
  • -moz- (Firefox)
  • -o- (Old, pre-WebKit, versions of Opera)
  • -ms- (Internet Explorer and Microsoft Edge)

So, for exmaple, a Firefox prefix for the transform property will be written as -

.example {
-moz-transform: value;
 -moz-border-radius: 10px;
 -webkit-border-radius: 10px;
-o-border-radius: 10px;
 border-radius: 10px;
}

Autoprefixer

  Working with Autoprefixer is simple: just forget about vendor prefixes and write normal CSS according to the latest W3C specs. You don’t need a special language (like Sass) or remember where you must use mixins.

Autoprefixer supports selectors (like :fullscreen and ::selection), unit function (calc()), at‑rules (@supports and @keyframes) and properties.

Because Autoprefixer is a postprocessor for CSS, you can also use it with preprocessors such as Sass, Stylus or LESS.

https://github.com/sindresorhus/sublime-autoprefixer

https://www.w3.org/TR/CSS/#css

最新文章

  1. 纯CSS实现二级下拉导航菜单
  2. Play常用代码片段 http://www.anool.net/?p=625
  3. Linux(CentOS)下安装git
  4. Python学习(13)函数
  5. Android权限之sharedUserId和签名
  6. USACO3.25Magic Squares(bfs)
  7. 浏览器渲染页面过程描述,DOM编程技巧以及重排和重绘。
  8. ubuntu 14.04 vnc use gnome(ubuntu14.04 gnome for vnc4server)
  9. MySQL Cluster-备份恢复初步测试
  10. C#将.spl剥离成.emf文件格式
  11. Mysql锁机制--并发事务带来的更新丢失问题
  12. DataIntegrityViolationException
  13. LeetCode第十题-正则表达式匹配
  14. UVALi 3263 That Nice Euler Circuit(几何)
  15. [UE4]用Blenspace混合空间动画代替AimOffset动画偏移
  16. Eclipse svn 项目 星号
  17. Docker:搭建私有仓库(Registry 2.4)
  18. VS2013在Windows7 64位上变慢的解决方法
  19. 洛谷P1938 找工就业
  20. dedecms织梦 v5.6 两处跨站漏洞

热门文章

  1. re正则表达式匹配字符串中的数字
  2. Python 递归锁
  3. svg 动画 透明度 放大缩小 x轴Y轴
  4. 《xxx系统》质量属性战术
  5. linux下crontab定时执行shell脚本调用oracle 存储过程
  6. SQL练习题-50道SQL练习题及答案与详细分析
  7. Python:从入门到实践--第九章-类--练习
  8. 设计简单的VB程序
  9. 1. cocos creator 连接服务端
  10. 常用socket选项