我们是否必须使用非标准/浏览器特定的CSS供应商前缀? [英] Do we have to use non-standard/browser specific CSS vendor prefixes anymore?

查看:172
本文介绍了我们是否必须使用非标准/浏览器特定的CSS供应商前缀?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

鉴于我并不是真的困扰向后兼容性(我正在探索基于CSS3和HTML5的设计,而不是依赖于图形等)使用CSS的好处是什么:

Given that I'm not really bothered about backwards compatibility (I'm exploring CSS3 and HTML5 based design, rather than relying on on graphics and such) what are the benefits of using css like:

-moz-box-shadow:    3px 3px 5px 6px #ccc;
-webkit-box-shadow: 3px 3px 5px 6px #ccc;

通过只是

box-shadow: 3px 3px 5px 6px #ccc;

后者似乎在大多数现代浏览器中工作正常虽然我会认为它可能在IE9工作,但我不能测试,因为我目前在Mac)。

The latter appears to work fine in most modern browsers (except the obvious! :p looking at you IE! Although I'll assume it probably works in IE9, but I can't test as I'm on a Mac at the moment).

我看到的东西吗?我们需要使用上面的浏览器特定代码吗?

Am I seeing things? Do we need to use the browser specific code above? Or are all browsers moving towards supporting the standards?

推荐答案

这完全取决于您要完全支持的功能和浏览器。

It really depends on which features and which browsers you want to fully support. Even now some browsers are lagging.

这里是一个非常好的指南: http ://caniuse.com/

Here is a really excellent guide: http://caniuse.com/

这篇关于我们是否必须使用非标准/浏览器特定的CSS供应商前缀?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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