Skip to content

Commit

Permalink
Update files/zh-cn/learn/getting_started_with_the_web/css_basics/inde…
Browse files Browse the repository at this point in the history
…x.md

Co-authored-by: Jason Ren <[email protected]>
  • Loading branch information
familyboat and jasonren0403 authored Oct 17, 2024
1 parent 36e0e28 commit 78f23e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ p {
整个结构称为**规则集**(*规则集*通常简称为*规则*),注意各个部分的名称:

- 选择器(Selector)
- : HTML 元素名位于规则集的开头。它选择了需要添加样式的元素(本例中就是 {{HTMLElement("p")}} 元素)。要给不同的元素添加样式,只需要更改选择器。
- : HTML 元素名位于规则集的开头。它定义了需要添加样式的元素(本例中就是 {{HTMLElement("p")}} 元素)。要给不同的元素添加样式,只需要更改选择器。
- 声明(Declaration)
- : 它是一条单独的规则,如 `color: red;`。用来指定为元素的哪个**属性**添加样式。
- 属性(Properties)
Expand Down

0 comments on commit 78f23e4

Please sign in to comment.