css3 - 语言伪类选择器

 1 <!DOCTYPE HTML>
 2 <html lang="en-US">
 3 
 4 <head>
 5     <meta charset="UTF-8">
 6     <title>语言伪类选择器</title>
 7     <style type="text/css">
 8          :lang(en) {
 9             quotes: '"' '"';
10         }
11         
12          :lang(en) q {
13             background: red;
14         }
15     </style>
16 </head>
17 
18 <body>
19     <p>WWF's goal is to:
20         <q>build a future where people live in harmony with nature</q> we hope they succeed.
21     </p>
22 </body>
23 
24 </html>

 

posted @ 2018-04-15 20:25  Sunsin  阅读(171)  评论(0编辑  收藏  举报