参考浏览器特定的 CSS?
我正在寻找浏览器特定 CSS 的参考。
所有以 -moz、-webkit、-o、-khtml 开头的内容
在 这个问题例如,该人用所有用户选择的答案
所有浏览器的代码,但他怎么知道 Opera 有这个选项呢?
我找不到这些的文档。
I'm looking for a reference for browser specific CSS.
All the things that start with -moz, -webkit, -o, -khtml
In this question for instance, the person answers with all the user-select
codes for all the browser, but how did he know that Opera has that option?
I couldn't find documentation for those.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
本文将解答您的疑问。
http://reference.sitepoint.com/css/vendorspecific
它不是特定于浏览器的,而是特定于供应商的。
this article will answer you questions.
http://reference.sitepoint.com/css/vendorspecific
Ps. it's not browser specific but vendor specific.
Opera 官方文档:http://www.opera.com/docs /specs/presto28/css/o-vendor/
(Presto 2.8 是 Opera 渲染引擎的当前版本。如果您浏览该文档站点,您将找到其他版本的文档。)
Official doc from Opera: http://www.opera.com/docs/specs/presto28/css/o-vendor/
(Presto 2.8 is current version of Opera's rendering engine. If you browse that documentation site you will find docs for other versions.)
请参阅此链接:
http://css3generator.com/
更新
在这里我发现了一个更有趣的网站可能会帮助你:
< a href="http://cssprefixer.appspot.com/" rel="nofollow">CSS PREFIXER
它会自动生成所有浏览器兼容的代码。
更多参考:
MOZILLA CSS 扩展
WEBKIT CSS 扩展
CSS 选择器测试
OPERA CSS 列表
See this link:
http://css3generator.com/
UPDATE
Here i found one more intresting website which may help u:
CSS PREFIXER
It automatically generates all browser compatible codes.
MORE References:
MOZILLA CSS EXTENSION
WEBKIT CSS EXTENSION
CSS SELECTOR TEST
OPERA CSS LIST
CanIUse.com 有一个可搜索的新功能列表,以及支持这些功能的浏览器。它不是一个明确的参考,但它是一个相当全面的功能列表,并且它确实指定了哪些版本对每个功能使用供应商前缀。
每个浏览器都可以在浏览器本身中找到更明确的列表。如果您在浏览器中打开调试工具(例如 Firebug 或 Chrome 的开发人员工具窗口等),您将能够导航所有可用的样式,这将一目了然地显示哪些样式需要供应商前缀。
执行此操作的方法因浏览器而异,但我建议浏览 DOM 树,因为每个元素都有一个
style
节点,您可以展开该节点以显示可用样式的完整列表。CanIUse.com has a searchable list of new features, along with which browsers support them. It's not a definitive reference, but it is a fairly comprehensive list of features, and it does specify which versions use vendor prefixes for each feature.
A more definitive list can be found per browser, within the browser itself. If you open the debugging tool within the browser (eg Firebug, or Chrome's Developer Tools window, etc), you will be able to navigate all the available styles, which will show you at a glance which ones require vendor prefixes.
The way to do it would vary between browsers, but I'd recommend browsing the DOM tree, because each element has a
style
node, which you can expand to reveal a full list of available styles.