标签:
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style> p{height:30px;} p[num]{border:1px solid #ccc;} p[num=fifth]{color:#999;} p[num~=one]{color:#cc1c1c;} p[num^=s]{background:pink;} p[num$=d]{color:red;} p[num*=c]{padding-left:20px;} p[num|=fifth]{background:green;} </style> </head> <body> <p num="first one">111111</p> <p num="second">22222</p> <p num="third">333333</p> <p num="forth">444444</p> <p num="fifth">555555</p> <p num="fifth-five">555555</p> </body> </html>
标签:
原文地址:http://www.cnblogs.com/slp-qm/p/5236429.html