This commit is contained in:
many2many 2024-09-20 11:15:25 +08:00
parent 3ddcfb50e5
commit bff9bbcc6f

View File

@ -176,7 +176,7 @@ HTML 元素(标签):
``` ```
#### 2.2.2 CSS3样式和布局 (了解) #### 2.2.2 CSS (了解)
[B站视频-为初学者准备的CSS 速成](https://www.bilibili.com/video/BV1bW411R7hg/?spm_id_from=333.337.search-card.all.click&vd_source=fb252f6c305362a2870fb7388465df99) [B站视频-为初学者准备的CSS 速成](https://www.bilibili.com/video/BV1bW411R7hg/?spm_id_from=333.337.search-card.all.click&vd_source=fb252f6c305362a2870fb7388465df99)
@ -184,6 +184,23 @@ HTML 元素(标签):
![](./resources/imgs/html-rendering.svg) ![](./resources/imgs/html-rendering.svg)
CSS 语法:
```
选择器 {
属性名: 属性值;
属性名: 属性值;
...
}
```
示例:
```css
body {
background-color: #f0f0f0;
}
```
##### 2.2.2.1 CSS选择器 ##### 2.2.2.1 CSS选择器
CSS选择器用以筛选出要添加样式的元素。 CSS选择器用以筛选出要添加样式的元素。