CSS: lang () selector
CSS selectors complete reference manual
Examples
Each <p> element lang attribute value is equal to "it (Italian)" the selected style:
p: lang (it)
{
background: yellow;
}
{
background: yellow;
}
try it"
Definition and Usage
: Lang add style to the element with the specified lang attribute begins.
Note: The value ofthe whole word, alone like lang = "en", or use a hyphen (-) as lang = "en-us".
Browser Support
Figures in the table represent the first browser to support the version number of the property.
选择器 | |||||
---|---|---|---|---|---|
:lang() | 4.0 | 8.0 | 2.0 | 3.1 | 9.6 |
Note:: lang run in IE8, you must declare <DOCTYPE!> .