-
Notifications
You must be signed in to change notification settings - Fork 0
/
轮播.css
69 lines (68 loc) · 1.14 KB
/
轮播.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
*{
margin: 0;
padding: 0;
text-decoration: none;
}
.container{
width: 600px;
height: 400px;
border: 3px solid #333;
margin:100px auto 0;
overflow: hidden;
position: relative;
box-shadow:10px 10px 100px rgb(24, 224, 6);
}
#list{
width: 4200px;
height: 400px;
position: absolute;
z-index:1;
}
#list img{
float: left;
}
#buttons{
position: absolute;
bottom: 10px;
left:250px;
z-index:2;
}
#buttons span{
width: 10px;
height: 10px;
border: 1px solid #eee;
cursor: pointer;/*鼠标移入变小手形状*/
float: left;
margin: 5px;
border-radius:50%;
}
.container #buttons .on{
background-color:orange;
}
.container .arrow{
cursor: pointer;
width: 40px;
height: 40px;
line-height: 40px;
text-align: center;
font-size:36px;
font-weight:bold;
background-color:rgba(0, 0, 0,0.3);
color: #fff;
z-index: 2;
position: absolute;
top:180px;
display: none;
}
#prev{
left: 10px;
}
#next{
right: 10px;
}
.arrow:hover{
background-color: rgba(0, 0, 0, .7);
}
.container:hover .arrow{
display: block;
}