久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

CSS3:未經檢查的偽類

CSS3 :unchecked pseudo-class(CSS3:未經檢查的偽類)
本文介紹了CSS3:未經檢查的偽類的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我知道有一個官方的 CSS3 :checked 偽類,但是有沒有一個 :unchecked 偽類,它們有相同的瀏覽器支持嗎?

I know there is an official CSS3 :checked pseudo-class, but is there an :unchecked pseudo-class, and do they have the same browser support?

Sitepoint 的參考資料 沒有提到,但是這個 whatwg 規范(不管是什么)的作用.

Sitepoint's reference doesn't mention one, however this whatwg spec (whatever that is) does.

我知道將 :checked:not() 偽類結合起來可以達到相同的結果,但我還是很好奇:

I know the same result can be achieved when the :checked and :not() pseudo-classes are combined, but i'm still curious:

input[type="checkbox"]:not(:checked) {
    /* styles */
}

w3c 推薦相同的技術

The w3c recommends the same technique

可以使用否定偽類來選中未選中的復選框:

An unchecked checkbox can be selected by using the negation pseudo-class:

:not(:checked)

推薦答案

:unchecked 沒有定義在 Selectors 或 CSS UI level 3 specs 中,也沒有出現在 Level 4 Selectors 中.

:unchecked is not defined in the Selectors or CSS UI level 3 specs, nor has it appeared in level 4 of Selectors.

事實上,W3C 的引用取自 Selectors 4 規范.由于 Selectors 4 建議使用 :not(:checked),因此可以安全地假設沒有對應的 :unchecked 偽.:not():checked 的瀏覽器支持是相同的,所以這應該不是問題.

In fact, the quote from W3C is taken from the Selectors 4 spec. Since Selectors 4 recommends using :not(:checked), it's safe to assume that there is no corresponding :unchecked pseudo. Browser support for :not() and :checked is identical, so that shouldn't be a problem.

這似乎與 :enabled:disabled 狀態不一致,尤其是因為一個元素既不啟用也不禁用(即語義完全不適用),但是對于這種不一致似乎沒有任何解釋.

This may seem inconsistent with the :enabled and :disabled states, especially since an element can be neither enabled nor disabled (i.e. the semantics completely do not apply), however there does not appear to be any explanation for this inconsistency.

(:indeterminate 不計算在內,因為一個元素同樣不能是未檢查、檢查或不確定的,因為語義不適用.)

(:indeterminate does not count, because an element can similarly be neither unchecked, checked nor indeterminate because the semantics don't apply.)

這篇關于CSS3:未經檢查的偽類的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

:hover:before text-decoration none has no effects?(:hover:before text-decoration none 沒有效果?)
Is CSS faster when you are specific?(當您特定時,CSS 會更快嗎?)
CSS sibling selectors (select all siblings)(CSS 兄弟選擇器(選擇所有兄弟))
IE: nth-child() using odd/even isn#39;t working(IE:使用奇數/偶數的 nth-child() 不起作用)
How can I tell if an element is in a shadow DOM?(如何判斷一個元素是否在影子 DOM 中?)
Can I use CSS to add a bullet point to any element?(我可以使用 CSS 為任何元素添加項目符號嗎?)
主站蜘蛛池模板: h视频在线播放 | 成人免费在线视频 | 精品国产乱码久久久久久蜜臀网站 | 91精品国产99久久久久久红楼 | 午夜视频福利 | 一级黄色小视频 | 不卡视频在线观看 | 黄色成人av| 在线一区二区三区四区 | 欧美日韩国产二区 | 五月天激情国产综合婷婷婷 | 成人午夜在线观看 | 久久黄色大片 | 五月激情久久 | 国产精品亚洲一区 | 亚洲精品免费视频 | 国产成人99久久亚洲综合精品 | 亚洲伦理在线观看 | 免费av在线| 午夜一级片 | 久草网站 | 97精品视频 | 性色在线 | 日韩精品视频免费在线观看 | 亚洲综合天堂 | 国产一区精品视频 | 日韩av网站在线观看 | 日韩av在线不卡 | 视频一区中文字幕 | 日本三级在线视频 | 亚洲综合伊人 | 日韩福利一区 | 天天天天天操 | 亚洲伦理在线观看 | 日批视频网站 | 91白浆| 在线观看视频国产 | 三级免费网站 | 亚洲国产一区在线 | 欧美精品一区二区在线观看 | 亚洲三级网 |