-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
228 lines (187 loc) · 3.82 KB
/
style.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
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
*{
margin: 0;
padding: 0;
}
/* button[disabled] {
background-color: #cccccc !important;
color: #8d8d88 !important;
border-color: #cccccc !important;
cursor: not-allowed;
} */
button:disabled {
background-color: #cccccc !important;
color: #8d8d88 !important;
border-color: #cccccc !important;
cursor: not-allowed;
}
.w{
width: 1300px;
margin: auto;
}
.header{
height: 42px;
/* background-color: white; */
margin: 30px auto;
/* border: solid 1px black; */
}
.logo{
float: left;
width: 198px;
height: 42px;
background-color: #5F9EA0;
line-height: 42px;
text-align: center;
}
.logo:hover {
/*
左右 上下 模糊程度 阴影大小 颜色
*/
box-shadow: 5px 5px 10px 0px rgb(0 0 0 / 20%);
/*
左右 上下 模糊程度 颜色
*/
text-shadow: 5px 5px 10px rgb(255 255 255 / 20%);
}
li {
/* display: inline-block; 一般不用元素属性转换的方法来调节行内显示,因为元素之间的具体距离无法控制,通常使用浮动来进行调整布局,使其同行显示*/
list-style: none;
margin: 0 15px;
}
a{
text-decoration: none;
}
.nav{
float: left;
margin-left: 60px;
}
.nav ul li {
float: left;
/* margin-right: 10px; */
position: relative;
}
.nav ul li a {
display: block;
/* a 是行内元素,不能直接进行指定高度和宽度,需要进行转换后再进行指定宽度和高度 */
height: 42px;
padding: 0 10px;
/* 此处仅指定高度,不指定宽度,使用padding将小盒子撑开 */
line-height: 42px;
/* 行高等于盒子高度,使文字垂直居中 */
font-size: 18px;
color: #050505;
/* box-shadow: 0 2px 1px 1px rgba(0, 0, 0, 0.08); */
/* border-left: 1px solid #ccc ; */
}
.nav ul li::after {
content: "";
display: inline-block;
height: 18px;
border-right: 1px solid rgb(211, 211, 211);
position: absolute;
top: 50%;
margin-top: -9px;
right: -15px;
}
.nav ul li:nth-last-child(1)::after {
content: none
}
.nav ul li a:hover{
background-color: #5F9EA0;
}
.search{
float: left;
width: 312px;
height: 42px;
/* background-color: #5F9EA0; */
margin-left: 50px;
display: flex;
justify-content: center;
align-items: center;
}
.search input {
width: 210px;
height: 32px;
border: 2px solid #5F9EA0;
/* color: gray; */
font-size: 14px;
padding-left: 15px;
outline: none;
}
.search input::placeholder {
color: #5F9EA0;
}
.search button{
width: 66px;
height: 32px;
color: #fff;
background-color: #5F9EA0;
border: 2px solid #5F9EA0;
box-sizing: content-box;
}
body{
background-color: #f3f5f7;
}
.banner{
height: 420px;
background-color: #5F9EA0;
}
.banner .w {
height: 420px;
background: url(gene.jpg) no-repeat top center;
}
.subnav{
width: 190px;
height: 420px;
background: rgba(0, 0, 0 ,0.3);
}
.subnav ul li {
height: 78px;
font-size: 18px;
}
.subnav ul li a {
color: white;
}
.subnav ul li a span {
float: right;
}
.subnav ul li a:hover {
color: #ff6700;
}
.box{
width: 1300px;
height: 322px;
}
.box .box-hd {
height: 66px;
line-height: 66px;
/* background-color: #5F9EA0; */
/* text-align: center; */
}
.box .box-bd .photo {
float: left;
width: 188px;
height: 199px;
}
.box .box-bd .photo img{
width: 188px;
height: 199px;
}
.box .box-bd .wenben {
float: left;
width: 888px;
margin-left: 36px;
font-size: 18px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.jiewei {
background-color: #5F9EA0 ;
height: 99px;
}
.jiewei ul li {
height: 50px;
line-height: 50px;
}
.jiewei ul li a {
font-size: 16px;
color: black;
}