-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslide.css
85 lines (85 loc) · 1.56 KB
/
slide.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
img {
border: 0;
}
.ck-slide ul {
margin: 0;
padding: 0;
list-style-type: none;
}
.ck-slide {
position: relative;
overflow: hidden;
}
.ck-slide ul.ck-slide-wrapper {
position: absolute;
top: 0;
left: 0;
z-index: 1;
margin: 0;
padding: 0;
}
.ck-slide ul.ck-slide-wrapper li {
position: absolute; margin-top:0px;
}
.ck-slide ul.ck-slide-wrapper li a{
/*a标签是行内元素,宽高对a标签不起作用,这里必须添加line-height:0px;display:black,否则垂直滚动<li>之间会出现间隔*/
line-height:0px;
display:block;
}
.ck-slide .ck-prev, .ck-slide .ck-next {
position: absolute;
top: 50%;
z-index: 2;
width: 35px;
height: 70px;
margin-top: -35px;
border-radius: 3px;
opacity: .15;
background: red;
text-indent: -9999px;
background-repeat: no-repeat;
transition: opacity .2s linear 0s;
}
.ck-slide .ck-prev {
top: 150px;
left: 5px;
background: url(images/arrow-left.png) #000 50% no-repeat;
}
.ck-slide .ck-next {
top: 150px;
right: 5px;
background: url(images/arrow-right.png) #000 50% no-repeat;
}
.ck-slidebox {
position: absolute;
top: 82%;
left: 50%;
bottom: 12px;
z-index: 30;
}
.ck-slidebox ul {
height: 20px;
padding: 0 4px;
border-radius: 8px;
background: rgba(0,0,0,0.5);
}
.ck-slidebox ul li {
float: left;
height: 12px;
margin: 4px 4px;
}
.ck-slidebox ul li em {
display: block;
width: 12px;
height: 12px;
border-radius: 100%;
background-color: #fff;
text-indent: -9999px;
cursor: pointer;
}
.ck-slidebox ul li.current em {
background-color: #fe6500;
}
.ck-slidebox ul li em:hover {
background-color: #fe6500;
}