设置 class 属性值包含 "test" 的所有 div 元素的背景色:
div[class*="test"] { background:#ffff00; }
div[class*="test"]
设置 class 属性值以 "test" 开头的所有 div 元素的背景色:div[class^="test"]{background:#ffff00;}