属性选择符有四种匹配方式。
例如,如下的属性选择符匹配那些指定了“ title ”属性的H1元素,而不论其值为什么?
For example, the following attribute selector matches all H1 elements that specify the "title" attribute, whatever its value.
一个简单选择符或者是一个类型选择符,或者是一个全局选择符,紧跟在后的是零个或多个属性选择符,ID选择符或伪类,次序任意。
A simple selector is either a type selector or universal selector followed immediately by zero or more attribute selectors, ID selectors, or pseudo-classes, in any order.
应用推荐