我应该删除供应商前缀吗? [英] Should I remove vendor prefixes?

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

问题描述

我有一个网站,我支持IE8,不再进一步。



当我第一次启动网站,我决定使用CSS供应商前缀CSSs元素例如border-radius,box-shadow等。我从一个完整的noob立场做了这个。



然而,是一个更好的方法不使用它们,

不,你不应该删除全部。 >



如何找出不再需要哪些前缀?



我可以使用... 是一个很好的资源,用于检查浏览器对各种CSS,HTML和JavaScript功能。例如,如果你执行搜索 box-sizing ,它会告诉你,所有现代浏览器都有部分支持 -moz - 前缀。您还可以在一个页面上此处查看所有CSS支持表。



如何澄清不再需要前缀?



有几个在线资源显示有关浏览器使用情况的信息。一个示例是 StatCounter 。 StatCounter提供浏览器版本统计信息,可以按时过滤。如果我们查看过去3个月,我们可以邀请我们仍应支持Firefox 20+,Chrome 25+,IE 8+和Safari 5.1+。


I have a website which I support as far as IE8, no further.

When I first launched the site, I decided to use CSS vendor prefixes for CSSs elements such as border-radius, box-shadow etc. I did this from a complete noob standpoint.

However, is a better approach not to use them and simply let browsers catch up rather than patch up for the sake of uniformity?

解决方案

No, you shouldn't remove all of them, however you may as well remove the ones which are no longer required.

How can I find out which prefixes are no longer required?

Can I use... is a great resource for checking browser support for various CSS, HTML and JavaScript features. If you perform a search for box-sizing, for instance, it will tell you that all modern browsers have partial support for this and that Firefox requires the -moz- prefix. You can also view all of the CSS support tables on just one page here.

How can I clarify that the prefixes are no longer required?

There are a couple of online resources which display information about browser usage. An example of this is StatCounter. StatCounter offers browser version statistics which can be filtered on time. If we look at the last 3 months, we can guestimate that we should still aim to support Firefox 20+, Chrome 25+, IE 8+ and Safari 5.1+.

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

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