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
180
181
182
183
184
185
186
187
188
189
190
191
|
@charse
/*以下是清空样式*/
body, ul, ol, li, p, h1, h2, h3, h4, h5, h6, form, fieldset, table, td, img, div, dl, dt, dd, input {
margin: 0;
padding: 0;
border: 0;
}
body {
font-size: 12px;
font-family: "Microsoft YaHei", 微软雅黑, "SimSun", "Arial Narrow", HELVETICA;
}
ul, ol,li {
list-style-type: none;
}
select, input, img {
vertical-align: middle;
}
a {
text-decoration: none;
}
/*首页背景*/
body {
background: url("../img/beige_paper.png") left top repeat;
}
/*顶部锚文本区*/
.link {
padding-top: 10px;
text-align: center;
}
.link a {
display: inline-block;
width: 51px;
height: 20px;;
line-height: 20px;
margin: 0 5px;
border: 1px solid #BFBFFF;
border-radius: 3px;
padding: 0 4px;
background: #fff;
color: #f30;
font-size: 12px;
}
.link a.active {
background: #259add;
color: #fff;
}
/*UL列表页*/
.list {
margin-top: 50px;
width: 100%;
height: auto;
}
.list li {
width: 500px;
height: 100px;
margin: 0 auto;
margin-bottom: 10px;
background: #fff;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
-webkit-transition: 0.3s all ease;
-moz-transition: 0.3s all ease;
-ms-transition: 0.3s all ease;
transition: 0.3s all ease;
overflow: hidden;
}
/*-webkit-transition;是动画出现的过度状态,0.3s all ease;代表0.3秒, 所有 安逸的*/
/*-webkit-是谷歌跟苹果浏览器的私有前缀;moz是火狐浏览器的私有前缀,ms是IE,o是欧鹏浏览器*/
.list li:hover {
cursor:pointer;
background: #E1F0FA;
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}
/*box-shadow是盒子阴影的意思,后面一共跟了四个数字,第一个是分别为X轴偏移量,Y轴偏移量,阴影半径;第四个是color;*/
/*rgba分别达标red,green,b色,o代表透明度,opacity*/
.list li:hover .text h2 {
color: #259add;
-webkit-animation: moveTop 300ms ease-in-out ;
-moz-animation: moveTop 300ms ease-in-out ;
-ms-animation: moveTop 300ms ease-in-out ;
-o-animation: moveTop 300ms ease-in-out ;
}
.list li:hover .text h3 {
color: #000;
-webkit-animation: moveBottom 300ms ease-in-out;
-moz-animation: moveBottom 300ms ease-in-out;
-ms-animation: moveBottom 300ms ease-in-out;
}
/*图标的CSS3*/
.list li:hover .icon{
color: #fff;
font-size: 50px;
}
.list li .icon {
color: #fff;
width: 90px;
height: 90px;
margin: 5px 20px 0;
line-height: 90px;
text-align: center;
font-size: 30px;
background: #259add;
display: inline-block;
float: left;
border-radius: 10px;
-webkit-transition: 0.3s all ease;
-moz-transition: 0.3s all ease;
-ms-transition: 0.3s all ease;
text-shadow: 0 0 3px #CCCCCC;
}
/*文字部分*/
.text {
width: 350px;
float: left;
margin-top: 16px;
height: 70px;
}
.text h2 {
color: #999;
font-size: 30px;
font-weight: normal;
}
.text h3 {
color: #666;
font-size: 14px;
font-weight: normal;
}
/*动画效果*/
@-webkit-keyframes moveTop {
from {
opacity: 0;
-webkit-transform: translateY(-200%);
}
to {
opacity: 1;
-webkit-transform: translateY(0%);
}
}
@-moz-keyframes moveTop {
from {
opacity: 0;
-moz-transform: translateY(-200%);
}
to {
opacity: 1;
-moz-transform: translateY(0%);
}
}
@-ms-keyframes moveTop {
from {
opacity: 0;
-ms-transform: translateY(-200%);
}
to {
opacity: 1;
-ms-transform: translateY(0%);
}
}
@-webkit-keyframes moveBottom {
from {
opacity: 0;
-webkit-transform: translateY(200%);
}
to {
opacity: 1;
-webkit-transform: translateY(0%);
}
}
@-moz-keyframes moveBottom {
from {
opacity: 0;
-moz-transform: translateY(200%);
}
to {
opacity: 1;
-moz-transform: translateY(0%);
}
}
@-ms-keyframes moveBottom {
from {
opacity: 0;
-ms-transform: translateY(200%);
}
to {
opacity: 1;
-ms-transform: translateY(0%);
}
}
/*链接部分*/
.broszhu{border: 1px solid #CCC;}
#home_top {height: 48px;line-height:48px;font-size:18; text-align: center; color:#008CD7;}
#home_bottom {color:#008CD7;text-align:center;font-size:14px;margin-bottom: 50px;}
|