-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpand_choice.html
More file actions
82 lines (65 loc) · 1.89 KB
/
expand_choice.html
File metadata and controls
82 lines (65 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!--
* @由于个人水平有限, 难免有些错误, 还请指点:
* @Author: cpu_code
* @Date: 2020-10-09 16:31:09
* @LastEditTime: 2020-10-09 16:43:20
* @FilePath: \web\css\expand_choice\expand_choice.html
* @Gitee: [https://gitee.com/cpu_code](https://gitee.com/cpu_code)
* @Github: [https://github.com/CPU-Code](https://github.com/CPU-Code)
* @CSDN: [https://blog.csdn.net/qq_44226094](https://blog.csdn.net/qq_44226094)
* @Gitbook: [https://923992029.gitbook.io/cpucode/](https://923992029.gitbook.io/cpucode/)
-->
<!DOCTYPE html>
<html lang="ch">
<head>
<meta charset="UTF-8">
<title>扩展选择器</title>
<!-- div p
子选择器:筛选选择器1元素下的选择器2元素
-->
<!-- div > p
父选择器:筛选选择器2的父元素选择器1
-->
<!-- a
伪类选择器:选择一些元素具有的状态
* link:初始化的状态
* visited:被访问过的状态
* active:正在访问状态
* hover:鼠标悬浮状态
-->
<style>
div p{
color: coral;
}
div > p{
border: 1px solid;
}
input[type='text']{
border: 5px solid;
}
a:link{
color: fuchsia;
}
a:hover{
color: darkslategray;
}
a:active{
color: magenta;
}
a:visited{
color: aliceblue;
}
</style>
</head>
<body>
<div>
<p> cpucode </p>
</div>
<p>cpu</p>
<div>哈哈哈</div>
<input type="text">
<input type="password">
<br/>
<a href="#">cpucpu</a>
</body>
</html>