CSS手册
»
选择符列表
»
伪类选择符
»
相关内容:
其它伪类选择符
选择其它项
E:link
E:visited
E:hover
E:active
E:focus
E:lang(fr)
E:not(s)
E:root
E:first-child
E:last-child
E:only-child
E:nth-child(n)
E:nth-last-child(n)
E:first-of-type
E:last-of-type
E:only-of-type
E:nth-of-type(n)
E:nth-last-of-type(n)
E:empty
E:checked
E:enabled
E:disabled
E:target
@page-first
@page-left
@page-right
E:lang(fr)
版本:CSS2
语法:
E:lang(fr)
{ sRules }
说明:
匹配使用特殊语言的E元素。
兼容性:
浅绿
= 支持
红色
= 不支持
粉色
= 部分支持
IE
Firefox
Chrome
Safari
Opera
iOS Safari
Android Browser
Android Chrome
6.0-7.0
2.0+
4.0+
3.1+
3.5+
3.2+
2.1+
18.0+
IE8.0+
示例:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>语言伪类选择符 E:lang(fr) - CSS手册 - API参考文档</title> <style> p:lang(zh-CN) { color: #f00; } p:lang(en) { color: #090; } </style> </head> <body> <p lang="zh-CN">大段测试文字</p> <p lang="en">english</p> </body> </html>