-
Notifications
You must be signed in to change notification settings - Fork 2
/
关闭样式和前后样式.html
92 lines (86 loc) · 1.9 KB
/
关闭样式和前后样式.html
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Test </title>
</head>
<style>
.closediv{
width: 50px;
height: 50px;
background: #2A303B;
line-height: 50px;
text-align: center;
position: absolute;
right: 0px;
top: 0px;
color:#FFF;
cursor: pointer;
padding: 10px;
}
.close{
display: inline-block;
width:30px;
height:30px;
overflow: hidden;
position: relative;
}
.close::before,.close::after{
content:"";
position: absolute;
top:50%;
left:0;
margin-top: -1px;
background-color: #FFF;
width:100%;
height:3px;
}
.close::before{
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
}
.close::after{
transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
}
.prev{
position: absolute;
top: 110px;
left: 30px;
display: inline-block;
margin: -15px;
border-left: 4px solid #AAAFBA;
border-bottom: 4px solid #AAAFBA;
width: 40px;
height: 40px;
transform: rotate(45deg);
}
.next{
position: absolute;
top: 110px;
right: 30px;
display: inline-block;
margin: -15px;
border-right: 4px solid #AAAFBA;
border-bottom: 4px solid #AAAFBA;
width: 40px;
height: 40px;
transform: rotate(-45deg);
}
</style>
<body>
<div class="div-header">
<div class="closediv"><span class="close"></span></div>
<div class="prev"></div>
<div class="next"></div>
</div>
</body>
</html>