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