CSS3: enabled Selector
CSS selectors complete reference manual
Examples
Set the background color of all type = "text" enable input element:
input [type = "text"]: enabled
{
background: # ffff00;
}
{
background: # ffff00;
}
try it"
Definition and Usage
: Enabled selector that matches each element enabled (mainly used in form elements).
Browser Support
Figures in the table represent the first browser to support the version number of the property.
选择器 | |||||
---|---|---|---|---|---|
:enabled | 4.0 | 9.0 | 3.5 | 3.2 | 9.6 |
More examples
Examples
For all enabled input elements to set the background color:
input: enabled
{
background: # ffff00;
}
{
background: # ffff00;
}
try it"