:lang 伪类使你有才略为差距的措辞定义非凡的规定。鄙人面的例子中,:lang 类为属性值为 no 的 q 元素定义引号的类型:
<html> <head> <style type="text/css"> q:lang(no) { quotes: "~" "~" } </style> </head> <body> <p>翰墨<q lang="no">段落中的引用的笔墨</q>文字</p> </body></html>
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/rumen/r52611.shtml