::-webkit-selection 选择器是否受过支持?
互联网上有一些对 ::-webkit-selection
的参考,它是 ::selection
选择器。
参见例如 http://www.quirksmode.org/css/selection.html (< strong>编辑: PPK 已从该页面删除了 ::-webkit-selection
。)
但是,我无法获取上面页面中的示例或我自己的示例示例,可在任何基于 WebKit 的浏览器中工作。我尝试过:
- Safari
- 1.0
- 1.2
- 2.0
- 3.0
- 4.0
- 5.0
- 5.1 铬
-
- 2
- 6
- 14
无前缀 ::selection
选择器无论如何都可以在所有这些浏览器中工作,所以这并不是一个真正的问题。但我想知道引用在哪里该选择器的特定于 WebKit 的版本来自。
有人用过吗?
There are a few references on the internet to ::-webkit-selection
, a WebKit-specific version of the ::selection
selector.
See e.g. http://www.quirksmode.org/css/selection.html (Edit: PPK has since removed ::-webkit-selection
from that page.)
However, I haven’t been able to get the example in the page above, or my own examples, to work in any WebKit-based browser. I’ve tried:
- Safari
- 1.0
- 1.2
- 2.0
- 3.0
- 4.0
- 5.0
- 5.1
- Chrome
- 2
- 6
- 14
The unprefixed ::selection
selector works in all of these browsers anyway, so it’s not really a problem. But I was wondering where the references to the WebKit-specific version of this selector had come from.
Has anyone ever used it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直测试到 Safari 1.0(使用 Multi-Safari),并且没有版本支持
::-webkit-selection
(并且它们都确实支持::selection
)。除非这是 Multi-Safari 的问题,否则
::-webkit-selection
在 1.0 以后的 Safari 中从未得到支持。我想它可能已经在公共测试版中了。I’ve tested all the way back to Safari 1.0 (using Multi-Safari), and no version supports
::-webkit-selection
(and they all do support::selection
).Unless this is an issue with Multi-Safari,
::-webkit-selection
has never been supported in Safari post-1.0. I guess it might have been in the public beta though.