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.
注意,如果使用标记类,那么只能把这些类添加到定义的相关标记中。
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显示页面。
Using pseudo class selectors to change content?
使用伪类选择器来改变内容?
Using pseudo class selectors to change content?
使用伪类选择器来改变内容?
应用推荐