Using pseudo class selectors to change content?
使用伪类选择器来改变内容?
Use class selectors instead of descendant selectors.
使用class选择器代替后代选择器。
After type selectors, the most commonly used selectors are class selectors.
仅次于类型选择符最常用的选择符是类选择符。
You can refer to Figure 2 to quickly check the CSS syntax for HTML, ID, and class selectors.
可以参考图2,了解HTML、ID和类选择符的css语法。
Note that with tag-class selectors, you can add them only to the tag for which you defined the class.
注意,如果使用标记类,那么只能把这些类添加到定义的相关标记中。
While you can certainly style an entire tag using CSS, you'll probably find that using class selectors is a better use of CSS and SVG.
尽管使用CSS无疑可以限定整个标签的样式,但您可能会发现,对CSS和SVG使用类选择器会更好。
Now let's look at how you might set up the class selectors, the associated class style definitions, the HTML page, and the resulting Web-displayed page.
现在,我们来看看如何设置类选择符、相关联的类样式定义和html页面以及最后生成的Web显示页面。
The background color, corner radius, and border and thickness styles of "header" and "content" viewers are defined in class selectors of the external CSS file: "example.css" (Listing 19).
“header”和“content”查看器的背景颜色、圆角半径、边框和透明度都在外部css文件example . css的类选择器中定义(见清单19)。
You can see the rules using ID, class, and element selectors matching parts of Listing 1.
可以看到,样式表规则使用ID、类和元素选择器匹配清单1的各部分内容。
In the previous section, you also learned that you can use selectors to retrieve elements based on their type or CSS class.
在前面的小节中,您学会了如何使用选择器根据类型或css类检索元素。
If you examine the default selectors within wp_styles_en.mthm, you will notice that most of the selectors are fully qualified (they include both XDIME element and style class).
如果您检查wp _ styles_en . mthm中的缺省选择器,您将注意到大多数选择器都是完全限定的(它们同时包含XDIME元素和样式类)。
If you examine the default selectors within wp_styles_en.mthm, you will notice that most of the selectors are fully qualified (they include both XDIME element and style class).
如果您检查wp _ styles_en . mthm中的缺省选择器,您将注意到大多数选择器都是完全限定的(它们同时包含XDIME元素和样式类)。
应用推荐