-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslideshow.css
More file actions
77 lines (76 loc) · 1.37 KB
/
Copy pathslideshow.css
File metadata and controls
77 lines (76 loc) · 1.37 KB
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
*,
::before,
::after{
padding: 0;
margin: 0;
-webkit-box-sizing: border-box;/*兼容移动端主流浏览器*/
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;/*清除移动端点击高亮效果*/
}
body{
font-family:Microsoft YaHei,sans-serif;
font-size: 14px;
color: #333;
}
ol,ul{
list-style: none;
}
/*清除浮动*/
.swipe::before,
.swipe::after{
content: "";
display: block;
height: 0;
line-height: 0;
visibility: hidden;
clear: both;
}
.layout{
width: 100%;
max-width: 750px;
min-width: 320px;
margin: 0 auto;
position: relative;
}
.banner{
width: 100%;
overflow: hidden;
position: relative;
}
.swipe{
width: 1000%;
-webkit-transform: translateX(-10%);
transform: translateX(-10%);
}
.swipe li{
width: 10%;
float: left;
}
.swipe li a{
display: block;
width: 100%;
}
.swipe li a img{
width: 100%;
display: block;
}
.swipe-btn-list{
position: absolute;
bottom: 6px;
width: 100%;
text-align: center;
}
.swipe-btn-list li{
width: 6px;
height: 6px;
border: 1px solid #fff;
border-radius: 50%;
display: inline-block;
margin-left: 10px;
}
.swipe-btn-list li:first-child{
margin-left: 0;
}
.swipe-btn-list li.now{
background: #fff;
}