-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbanner.css
98 lines (94 loc) · 1.84 KB
/
banner.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
@charset "utf-8";
*{
margin: 0;
padding: 0;
font-family: 微软雅黑;
font-size: 14px;
color: #424242;
-webkit-user-select: none;
}
ul,li{
list-style: none;
}
img{
display: block;
border: none;
}
a,a:hover,a:active,a:target,a:visited{
color: #424242;
text-decoration: none;
}
.banner {
position: relative;
margin: 0 auto;
width: 1000px;
height: 300px;
overflow: hidden;
}
/*轮播图区域的样式*/
.banner .bannerInner{
width: 100%;
height: 100%;
background: url("../image/default.gif") no-repeat center center #373942;
}
.banner .bannerInner div{
position: absolute;
top:0;
left: 0;
width: 100%;
height: 100%;
/*设置每一张图片所在区域的初始样式:z-index=0 opacity=0*/
z-index: 0;
opacity: 0;
filter: alpha(opacity=0);
}
.banner .bannerInner img{
display: none;
width: 100%;
height: 100%;
}
/*焦点区域的样式*/
.banner .bannerTip{
position: absolute;
right: 20px;
bottom: 20px;
z-index: 10;
height: 18px;
overflow: hidden;
}
.banner .bannerTip li{
float: left;
margin-left:10px;
width: 18px;
height: 18px;
background: lightblue;
border-radius: 50%;
cursor: pointer;
}
.banner .bannerTip li.bg{
background: red;
}
.banner a{
display: none;
position: absolute;
top: 50%;
z-index: 20;
margin-top:-20px ;
width: 30px;
height: 40px;
background-image:url(../image/direction.jpg);
opacity: 0.5;
filter: alpha(opacity=50);
}
.banner a:hover{
opacity: 1;
filter: alpha(opacity=100);
}
.banner a.bannerLeft{
left: 20px;
background-position: 473px 178px;
}
.banner a.bannerRight{
right: 20px;
background-position: 245px 178px;
}