# CSS选择器
使用`CSS`对`HTML`页面中的元素实现一对一,一对多或者多对一的控制,这就需要用到选择器。
`HTML`页面中的元素就是通过`CSS`选择器进行控制的。
## id选择器
```html
id选择器
```
## 类选择器
```html
类选择器1
类选择器2
类选择器3
```
## 标签选择器
```html
标签选择器1
标签选择器2
```
## 相邻选择器
```html
相邻选择器 +
相邻选择器
相邻选择器 ~
相邻选择器
相邻选择器
相邻选择器
```
## 子元素选择器
```html
子元素选择器
子元素选择器不被选择
子元素选择器不被选择
```
## 后代选择器
```html
```
## 通配符选择器
```html
```
## 属性选择器
```html
属性选择器
```
## 伪类选择器
```html
```
## 代码示例
```html
CSS选择器
id选择器
类选择器1
类选择器2
类选择器3
标签选择器1
标签选择器2
相邻选择器 +
相邻选择器
相邻选择器 ~
相邻选择器
相邻选择器
相邻选择器
子元素选择器
子元素选择器不被选择
子元素选择器不被选择
属性选择器
```
## 每日一题
```
https://github.com/WindrunnerMax/EveryDay
```