CSS3: checked selector
CSS selectors complete reference manual
Examples
Set the background color for all the selected input elements:
input:checked
{
background:#ff0000;
}
{
background:#ff0000;
}
try it"
Definition and Usage
: Checked selector to match each selected input element (only for radio buttons or check boxes).
Browser Support
Figures in the table represent the first browser to support the version number of the property.
选择器 | |||||
---|---|---|---|---|---|
:checked | 4.0 | 9.0 | 3.5 | 3.2 | 9.6 |