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

查看:17
本文介绍了我们是否必须再使用非标准/浏览器特定的 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;

后者似乎在大多数现代浏览器中都可以正常工作(除了明显的!:p 看着你的 IE!虽然我认为它可能在 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天全站免登陆