I've been reading many articles and I've seen prefixes such as -webkit-
, -moz-
, -ms-
, -o-
. Obviously the first two are commonly used and are also specified in W3C, however what about the latter ? Are they real, and if so, should I be worried about using them ?
我一直在阅读很多文章,我看过前缀,如-webkit-, - moz - , - ms - , - o-。显然前两个是常用的,并且在W3C中也有说明,但后者呢?它们是真的,如果是的话,我应该担心使用它们吗?
Most of the websites only specify the need to use -webkit-
and -moz-
on specific properties which I'm aware of, however I am aiming to have my code cover the largest range of browsers possible therefore I need to know if the above prefixes and their inexistence can affect my cross-browser compatibility.
大多数网站只指定在我所知道的特定属性上使用-webkit-和-moz-的需要,但是我的目标是让我的代码涵盖最大范围的浏览器,因此我需要知道上面是否前缀及其不存在会影响我的跨浏览器兼容性。
Thank you!
1 个解决方案
#1
If you are willing to create a Cross-Platform webpage (You MUST always do that) you will have to add all of them into certain CSS3 properties. Each one of them, represents a different render Engine.
如果您愿意创建跨平台网页(您必须始终这样做),您必须将所有这些网页添加到某些CSS3属性中。它们中的每一个代表一个不同的渲染引擎。
-webkit-
Used for Safari and Chromium browsers
-webkit-用于Safari和Chromium浏览器
-moz-
Used for Firefox
-moz-用于Firefox
-ms-
Used for Internet Explorer
-ms-用于Internet Explorer
-o-
Used for Opera
-o-用于Opera
#1
If you are willing to create a Cross-Platform webpage (You MUST always do that) you will have to add all of them into certain CSS3 properties. Each one of them, represents a different render Engine.
如果您愿意创建跨平台网页(您必须始终这样做),您必须将所有这些网页添加到某些CSS3属性中。它们中的每一个代表一个不同的渲染引擎。
-webkit-
Used for Safari and Chromium browsers
-webkit-用于Safari和Chromium浏览器
-moz-
Used for Firefox
-moz-用于Firefox
-ms-
Used for Internet Explorer
-ms-用于Internet Explorer
-o-
Used for Opera
-o-用于Opera