As you start to use attribute selectors more and more, you'll end up working with values (from attributes) as much as you work with nodes.
随着越来越多的使用属性选择器,最终将与处理节点一样经常地使用值(来自属性)。
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.
一个简单选择符或者是一个类型选择符,或者是一个全局选择符,紧跟在后的是零个或多个属性选择符,ID选择符或伪类,次序任意。
The selector in the following rule, which combines descendant and attribute selectors, matches any element that (1) has the "href" attribute set and (2) is inside a P that is itself inside a DIV
下面规则中的选择符结合了派生选择符和属性选择符,它匹配任何元素,如果(1)该元素设置了"href"属性;且(2)包含在一个P元素内,而P元素又包含在一个DIV元素内
So, the operators are the same as the attribute selectors.
所以,操作符(operators)和属性选择符(attribute selectors)是一样的。
Attribute selectors may match in four ways.
属性选择符有四种匹配方式。
Attribute selectors may match in four ways.
属性选择符有四种匹配方式。
应用推荐