:enabled

套用一或多個樣式至已啟用的表單控制項元素。

語法

:enabled { sRules }

可能的值

sRules

指定一或多個階層式樣式表 (CSS) 屬性/值組的值。

備註

:enabled 虛擬類別是 UI 元素狀態虛擬類別。UI 元素狀態虚擬類別可選取處於特定狀態 (已啟用、已停用或已選取/已核取) 的 UI 元素 (如選項按鈕或核取方塊等表單控制項)。

標準資訊

您可以在 CSS Selectors Level 3 (CSS 選取器層級 3) Gg721749.xtlink_newWindow(zh-tw,Expression.40).png 找到此虛擬元素的定義。

適用範圍

a , abbr , acronym , address , b , big , blockquote , body , caption , center , cite , code , col , colgroup , dd , dfn , dir , div , dl , dt , em , form , hn , html , i , img , input , input type=button , input type=checkbox , input type=file , input type=hidden , input type=image , input type=password , input type=radio , input type=reset , input type=submit , input type=text , kbd , label , legend , li , listing , marquee , menu , ol , p , plaintext , pre , s , samp , select , small , span , strike , strong , sub , sup , table , tbody , td , textarea , tfoot , th , thead , tr , tt , u , ul , var , xmp

另請參閱

概念

:disabled
:checked
:indeterminate