为什么在CSS3中有供应商前缀? [英] Why are there vendor prefixes in CSS3?

查看:128
本文介绍了为什么在CSS3中有供应商前缀?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以理解使用他们的非官方的实验性的东西(即;不是在CSS3规范),以防止名称冲突,但为什么需要前缀的阴影等等?

I could understand using them for experimental things that aren't official (ie; not in the CSS3 spec) to prevent name collisions, but why the need for prefixes on shadowing and such?

每个供应商都不应该按照CSS3规范实现相同的效果吗?

Shouldn't each vendor be implementing the effects the same, as per the CSS3 specs?

编辑:一旦CSS3完成,前缀将会消失?我只是好奇为什么一些功能有前缀的一些功能的历史,有些不,当效果似乎在所有主要浏览器相同。

Will the prefixes go away once CSS3 is finalized? I just am curious about the history of why some features have prefixes, and some don't, when the effect seems to be the same on all major browsers.

推荐答案

之前,但简单的回答是CSS3不是一个成品。 CSS 2.1直到2011年才发布,只有少数CSS3模块甚至达到了正式推荐的水平,所以谈论一个普遍实现的CSS3规范是言之过早。幸运的是,现代浏览器制造商正在帮助推进事物,并帮助制定遵循现实世界实践的标准。当它们更接近一般标准时,前缀将被删除。

This has been asked before, but the short answer is that CSS3 is not a finished product. CSS 2.1 wasn't published until 2011, and only a handful of CSS3 modules have even reached the level of a formal recommendation, so it's premature to talk about a CSS3 specification that is universally implemented. Thankfully, modern browser makers are helping to push things forward and are helping to craft the standard which follows the lead of real-world practice. As they move closer to general standards, the prefixes are dropped.

这篇关于为什么在CSS3中有供应商前缀?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆