問題描述
互聯網上有幾處參考 ::-webkit-selection
,這是 ::selection
選擇器.
There are a few references on the internet to ::-webkit-selection
, a WebKit-specific version of the ::selection
selector.
參見例如http://www.quirksmode.org/css/selection.html ( PPK 已經從該頁面中刪除了 ::-webkit-selection
.)
See e.g. http://www.quirksmode.org/css/selection.html ( PPK has since removed ::-webkit-selection
from that page.)
但是,我無法讓上面頁面中的示例或我自己的示例在任何基于 WebKit 的瀏覽器中工作.我試過了:
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:
- 野生動物園
- 1.0
- 1.2
- 2.0
- 3.0
- 4.0
- 5.0
- 5.1
- 2
- 6
- 14
無前綴的
::selection
選擇器無論如何都適用于所有這些瀏覽器,所以這不是一個真正的問題. 但我想知道對特定于 WebKit 的引用在哪里這個選擇器的版本來自于.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.有人用過嗎?
推薦答案
我一直測試到 Safari 1.0(使用 Multi-Safari),并且沒有版本支持
::-webkit-selection
(并且它們都確實支持::選擇
).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
).除非這是 Multi-Safari 的問題,否則
::-webkit-selection
從未在 Safari 1.0 后得到支持.我猜它可能已經在 公開測試版中.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.這篇關于::-webkit-selection 選擇器曾經被支持過嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!