css样式表中四种属性选择器
1> 简易属性
tag[class]{ font-weight:bold }It will affect all tag with any class.e.g. <h2 > or <h2 >
2>精确属性值
a[href="http://www.cnblogs.cn"][title="textTitle"]{font-size:10%} It will affect <a href="http://www.cnblogs.cn"title="textTitle">
3>部分属性值
类似使用perl中得匹配
p[class~="urgent"] {font-weight:bold;}input [type="checkbox"],input [type="radio"],input [type="file"]footer[role="contentinfo"] a
4>统配属性
*[lang|="en"]{color:white;}
匹配连接lang或="en"字符的所有内容
原标题:css样式表中四种属性选择器
关键词:CSS