CSS3 [attribute * = value] Selector
CSS selectors complete reference manual
Examples
Set the class attribute value contains the background color "test" of all div elements:
div [class * = "test"]
{
background: # ffff00;
}
{
background: # ffff00;
}
try it"
Definition and Usage
[Attribute* = value] selector matches the element attribute contains the elements specified value.
Browser Support
All major browsers support[attribute* = value] s selector.
Note: [attribute * = value] run in IE8, you must declare <DOCTYPE!> .
More examples
Examples
Set the class attribute value contains the background color "test" of all the elements:
[class*="test"]
{
background:#ffff00;
}
{
background:#ffff00;
}
try it"