编辑下面的代码:【加编码】
<html> <head> <style> p:lang(it) { background:yellow; } </style> </head> <body> <p>I live in Italy.</p> <p lang="it">Ciao bella!</p> <p><b>Note:</b> For :lang to work in IE8, a DOCTYPE must be declared.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂