CSS [attribute ~ = value] Selector
CSS selectors complete reference manual
Examples
Select all the elements of the title attribute contains the word "flower" of
[Title ~ = flower]
{
background-color: yellow;
}
{
background-color: yellow;
}
try it"
Definition and Usage
[Attribute~ = value] selector is used to select a specified attribute value contains the word element.
Browser Support
All major browsers support[attribute~ = value] selector.
Note: [attribute ~ = value] run in IE8, you must declare <DOCTYPE!> .
related articles
CSS tutorial: CSS attribute selectors
CSS selectors complete reference manual