时间轴


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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title></title>
<style>
ul {
padding: 20px;
list-style: none;
}

ul li {
line-height: 20px;
position: relative;
margin-bottom: 20px;
color: blueviolet;
}

ul li .xiushi {
height: 100%;
position: absolute;
left: -10px;
top: 0;
color: white;
text-align: center;
}

ul li .main {
padding-left: 20px;
background-color:
}

ul li .xiushi span.yuan {
width: 20px;
height: 20px;
border-radius: 100%;
display: block;
background-color: orange;
z-index: 10;
position: absolute;
top: 0;
left: 0;
}

ul li .xiushi span.line {
position: absolute;
top: 0;
left: 7px;
z-index: 9;
display: block;
width: 5px;
height: 100%;
background-color: red;
}
/*选中*/

ul li.active .xiushi .yuan {
background-color: #0000FF;
}
</style>
</head>

<body>
<ul>
<li>
<div class="xiushi">
<span class="yuan">1</span>
<span class="line"></span>
</div>
<div class="main">
<h2>产品经理</h2>
<p>全职</p>
<p>离职状态,可立即上岗</p>
</div>
</li>
<li>
<div class="xiushi">
<span class="yuan">2</span>
<span class="line"></span>
</div>
<div class="main">
<h2>产品经理</h2>
<p>全职</p>
<p>离职状态,可立即上岗</p>
</div>
</li>
<li class="active">
<div class="xiushi"> <span class="yuan">3</span>
<span class="line"></span></div>
<div class="main">
<h2>产品经理</h2>
<p>全职</p>
<p>离职状态,可立即上岗</p>
</div>
</li>
</ul>
<script>
</script>
</body>

</html>