css (Cascading Style Sheet) 层叠样式表/级联样式表
属性选择器 [ ]
- [attr]: 所有包含attr 属性名的 标签将会被选中
e.g: [id] 所有存在id属性的标签将会被应用该css 样式
- [attr='value']: 属性值全匹配值
e.g <div class="nav nav_title"></div> [class='nav'] css类将无法应用,正确食用方法: [class='nav nav_title']
- [attr~='value'] / [attr*='value']:属性值包含值,全匹配无效例子 改为 [class~='nav'] 也能生效
- [attr^='value'] / [attr|='value'] :属性值以值开头
- [attr$='value']:属性值以值结尾