CSS: read-write selector
CSS selectors complete reference manual
Examples
If the input element is not read-only, that is, no "readonly" attribute, set the input box style yellow:
input:read-write
{
background-color: yellow;
}
{
background-color: yellow;
}
try it"
Definitions and use
: Read-write selector to match readable and writable element.
Note: Currently, in most browsers,: read-write selector only be used to set the input and textarea elements.
Browser Support
Figures in the table represent the first browser to support the version number of the property.
选择器 | |||||
---|---|---|---|---|---|
:read-only | 支持 | 不支持 | -moz- | Yes | Yes |
CSS Syntax
:read-write
{
css 声明 ;
}
{
css 声明 ;
}
Related Pages
CSS selectors : read-only