-
Notifications
You must be signed in to change notification settings - Fork 0
/
前端-第5周第1次-JS(4)-2022·2·15.css
179 lines (140 loc) · 2.84 KB
/
前端-第5周第1次-JS(4)-2022·2·15.css
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
/* 页面整体设置 */
* {
margin: 0;
padding: 0;
border: none;
outline: none;
box-sizing: border-box;
}
:root {
font-family: PingFang SC,HarmonyOS_Regular,Helvetica Neue,Microsoft YaHei,sans-serif !important;
}
body {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
/* 轮播图整体设置 */
.box {
width: 600px;
/* height: 400px; */
border-radius: 10px;
box-shadow: 0px 0px 5px 0px #999;
overflow: hidden;
position: relative;
}
.list {
width: 6000px;
height: 400px;
list-style: none;
display: flex;
justify-content: center;
align-items: center;
}
/* 轮播图各项设置 */
.item {
width: 600px;
height: 400px;
}
.item > a {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
text-decoration: none;
color: white;
position: relative;
}
.item > a > img {
width: 100%;
height: 100%;
}
.item > a > div {
position: absolute;
bottom: 15%;
left: 5%;
font-size: 18px;
}
/* 页面切页点显示部分 */
.points {
position: absolute;
bottom: 5%;
left: 5%;
display: flex;
justify-content: center;
align-items: center;
z-index: 9;
list-style: none;
}
.points > li {
background-color: rgba(255, 255, 255, 0.5);
width: 8px;
height: 8px;
margin: 4px 5px;
border: none;
border-radius: 50%;
cursor: pointer;
transition: all 250ms ease 0ms;
}
.points > .point-active {
background-color: white;
width: 1px;
height: 1px;
outline: 6px solid white;
border: none;
}
/* 页面左右切换按钮部分 */
.switch {
position: absolute;
bottom: 5%;
right: 5%;
width: 75px;
height: 25px;
display: flex;
justify-content: space-evenly;
align-items: center;
}
.switch > div {
background-color: rgba(255, 255, 255, 0.2);
width: 25px;
height: 25px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 5px;
transition: all 250ms ease 0ms;
cursor: pointer;
}
.switch > div:hover {
background-color: rgba(255, 255, 255, 0.5);
}
/* 外部引入箭头文件 */
.arrow {
display: inline-block;
width: 10px;
height: 10px;
border-top: 2px solid white;
border-right: 2px solid white;
position: relative;
}
.arrow_bottom {
transform: rotate(135deg);
top: -3px;
}
.arrow_top {
transform: rotate(-45deg);
top: 3px;
}
.arrow_left {
transform: rotate(-135deg);
top:1px;
left:3px;
}
.arrow_right {
transform: rotate(45deg);
top: 1px;
left: -3px;
}