space-separated attribute selector 属性选择器
Attribute Contains Selector 属性包含选择器
Attribute Equals Selector 属性均等选择器
Attribute Ends With Selector 属性结尾选择器
Attribute Starts With Selector 属性开头选择器
Attribute Contains Prefix Selector 属性字头选择器
Attribute Contains Word Selector 属性单词选择器
Attribute Not Equal Selector 属性非等选择器
Attribute Word Selector 属性词汇选择符
For example, the following attribute selector matches all H1 elements that specify the "title" attribute, whatever its value.
例如,如下的属性选择符匹配那些指定了“ title ”属性的H1元素,而不论其值为什么?
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选择符或伪类,次序任意。
So the return value (sort of a misnomer, but still a useful way to think about things) for an attribute selector is a value; for an element, it's a node set (containing a single node).
因此对于属性选择器,返回值(虽然不确切但是很有用)是一个值,对于一个元素则是一个节点集(包含一个节点)。
应用推荐