-moz和-webkit css不再需要? [英] -moz and -webkit css no longer needed?

查看:148
本文介绍了-moz和-webkit css不再需要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直使用 -moz -webkit ,文本阴影等。最近我注意到,每个FireFox,Chrome,Safari和IE( 9 )都产生与标准 box-shadow text-shadow 和类似的css样式。

I have been using the -moz and -webkit css styles for a while now for things like box shadow, text shadow, etc. And lately I have noticed that each FireFox, Chrome, Safari, and IE (9) all yield the same results with the standard box-shadow and text-shadow and similar css styles.

我想知道这是否。因为我成功地从一个网站删除了所有浏览器特定的浏览器,并且在所有这四个浏览器中仍然看起来一样。

I was wondering if this is documented anywhere. Because I successfully removed all of the browser-specific ones from a site and it still looks the same in all four of those browsers.

推荐答案

p>我想这取决于您定位的浏览器的版本。

I suppose it depends on the version of the browsers you are targeting.

这听起来像,如果,只有当你的应用程序或网站只打算工作在所有浏览器的最新版本,你可以省略 - moz和-webkit对您测试的特定属性。

It sounds like if, and only if, your app or site is intended to only work on the very latest versions of all the browsers, you can afford to omit the -moz and -webkit on the specific properties you have tested.

还有其他属性不支持所有浏览器,例如。我个人最喜欢的 webkit-transition 。当然,在现实中,除非你是个人项目,否则你不可能只使用最新的浏览器。

There are other properties that aren't supported on all browsers, e.g. my personal favourite webkit-transition. Of course in actual reality it's unlikely you can get away with targetting only the latest browsers unless you're making a personal project.

这篇关于-moz和-webkit css不再需要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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