CSS ?? ???
CSS ?? ???
?? ??? ??? HTML ?? ???
?? ??? ??? HTML ?? ???? ??? ? ID ? ?????.
??: IE7 ? IE8? DOCTYPE? ?? ???? ???? ???! IE6 ?? ??? ?? ???? ???? ????.
?? ???
?? ???? ??? ??? ?? ??? ??????? ????.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> [title] { color:blue; } </style> </head> <body> <h2>我沒有變</h2> <h1 title="Hello world">Hello world</h1> <a title="PHP中文網(wǎng)" href="http://m.miracleart.cn">PHP中文網(wǎng)</a> <hr> <h2>PHP.cn</h2> <p>Hello!</p> </body> </html>
????? ???? ??? ???
?? ? ? ???
?? ???? ?????. ?? ??? ??? ???='php.cn' ??:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文網(wǎng)(php.cn)</title> <style> [title=w3cschool] { border:5px solid green; } </style> </head> <body> <h2>將適用:</h2> <img title="php.cn" src="/upload/course/000/000/006/5809800b44336872.jpg" width="270" height="50" /> <br> <a title="php.cn" href="http://m.miracleart.cnc">php中文網(wǎng)</a> <hr> <h2>將不適用:</h2> <p title="greeting">Hi!</p> <a class="php.cn" href="http://m.miracleart.cn">php中文網(wǎng)</a> </body> </html>
????? ???? ??? ???
?? ? ? ??? ??- ?? ?
???? ??? ??? ???? ????. value ??? ?? ???? ?? (~)? ???? ?? ??? ?? ??? ?:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文網(wǎng)(php.cn)</title> <style> [title~=hello] { color:blue; } </style> </head> <body> <h2>將適用:</h2> <h1 title="hello world">Hello world</h1> <p title="student hello">Hello CSS students!</p> <hr> <h2>將不適用:</h2> <p title="student">Hi CSS students!</p> </body> </html>
????? ???? ??? ???
??? ??? ?? ???? lang ??? ?? ??? ????. , ??? ?? ????? (|)? ?????. ??? ?? ????