Do spell non-element selectors in lower camel case unless the selector is meant to match a native HTML attribute.
坚持用小驼峰形式拼写非元素选择器,除非该选择器用于匹配原生HTML 属性。
Perhaps the most commonly used selector is the type selector, though most people think of it as a tag name or element selector.
最常用的选择符可能是类型选择符,但是大多数人把它称为标记名或元素选择符。
When using the descendant combinator, an element selector on the right is selected if it falls anywhere between the tags of the element selector on the left.
当使用后代选择符,右边的一个元素选择器是被选择的,不管左边的元素选择器标签有几个。
This element is to provide randomization for a test run sequence, rather than running the test sequentially, by adding random selector.
这个元素用来通过添加随机选择器,为一个测试运行序列提供随机选择,而不是按照测试顺序地运行。
This selector could be any other element in the form that you want to define a CSS for.
此选择器可以是表单中您希望为其定义CSS的任何其他元素。
This selector is used to single out a particular element; IDs should be unique within a document.
这个选择符用于选择出特定的单一元素;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).
因此对于属性选择器,返回值(虽然不确切但是很有用)是一个值,对于一个元素则是一个节点集(包含一个节点)。
The universal selector, written "*", matches the name of any element type.
全局选择符,写做"*",匹配任意元素类型名。
You can reduce this font size by assigning 62.5% to the font-size property of the body selector (also known as the block-level element) like shown in Listing 2.
通过为正文选择器(body selector,也称为块级元素)的font-size属性分配 62.5% 的值可以减小这个字体大小,如清单 2 所示。
In this case, the selector is the ancestor element name followed by the descendant element name.
在这种情况下,选择符是祖先元素名后面跟着后代元素名。
A selector consisting of a single simple selector matches any element satisfying its requirements.
包含一个简单选择符的选择符,匹配任意符合它要求的元素。
Use the element only selector type if it is in fact global.
如果elementonly 选择器类型确实是全局的,则使用它。
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元素内
With the class selector you can define different styles for the same type of HTML element.
用选择器类你可以将同一类型的HTML元素定义出不同的样式。
Retrieves text contents matching a given selector expression. If you provide one matching more than one element, their textual contents will be concatenated.
获取一个给定的选择器表达式匹配的文本内容,如果他们匹配了不止一个元素,他们的文本内容将被连接起来。
The result selector therefore has access to every element of the first collection.
因此,结果选择器可以访问第一个集合的每个元素。
With the class selector you can define different styles for the same type of HTML element.
使用类选择器可以为同一类型的HTML元素定义不同的样式。
Then, because the selector array hasn't been changed, the loop runs again with the prototype method and it throws an error because now the element isn't in the DOM.
然后,因为选择器数组没有改变,与原型法和循环再次运行它抛出一个错误,因为现在在DOM元素不是。
Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
获得集合中每个匹配元素的所有前面的兄弟元素,选择性筛选的选择器。
Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
获得每个匹配元素集合中所有下面的同辈元素,选择性筛选的选择器。
Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
获得匹配元素集合中每个元素的兄弟元素,选择性筛选的选择器。
Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
在匹配的元素集合中,获取的第一个元素的当前坐标,或设置每一个元素的坐标,坐标相对于文档。
Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
在匹配的元素集合中,获取的第一个元素的当前坐标,或设置每一个元素的坐标,坐标相对于文档。
应用推荐