-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathAdvanced-Task5.css
209 lines (177 loc) · 3.18 KB
/
Advanced-Task5.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
* {
margin:0;
padding:0;
}
body {
background-color: #FEF6F3;
font-family: "微软雅黑";
width: 100%;
/*将元素设置为父级框*/
display: -webkit-box; /* Chrome、Safari */
display: -moz-box; /* Firefox 17- */
display: -o-box; /* Opera */
display: -ms-box; /* IE 10 */
/*将子元素居中显示在父级框中*/
-webkit-box-pack:center;
-moz-box-pack:center;
-o-box-pack:center;
-ms-box-pack:center;
}
header,section,footer,aside,nav,article,label {
display: block;
}
.container {
margin:0 auto;
/*将container也设置为父级框*/
display: -webkit-box;
display: -moz-box;
display: -o-box;
display: -ms-box;
/*让子元素垂直排列*/
-webkit-box-orient:vertical;
-moz-box-orient:vertical;
-o-box-orient:vertical;
-ms-box-orient:vertical;
/*将父级框设置为弹性框,可调节大小*/
-webkit-box-flex:1;
-moz-box-flex:1;
-o-box-flex:1;
-ms-box-flex:1;
}
header {
background-color: #0B98FB;
width: 100%;
height: 33px;
position: fixed;
top:0px;
left: 0px;
z-index:20;
background-color: #0B98FB;
width: 100%;
height: 33px;
overflow: hidden;
}
nav {
margin:0 auto;
width: 80%;
}
nav ul {
list-style-type:none;
position: relative;
}
nav li {
float:left;
width:12.5%;
}
nav a:link,a:visited {
display: block;
background-color:#0B98FB;
text-decoration: none;
text-align: center;
padding: 6px;
}
nav a:hover,a:active {
background-color: #3E68F9;
}
#logo img {
float: left;
}
.wrapper {
padding: 25px;
}
main {
float: left;
width: 60%;
}
article {
background-color: #FFFFFF;
box-shadow: 2px 2px 3px #888888;
padding: 29px;
margin-top: 30px;
width: 100%;
}
p {
text-indent: 2em;
font-style:
font-size:14px;
line-height: 24px;
}
a{
text-decoration: none;
color: #B6AEFF;
}
dl{
width: 500px;
}
dt{
float:left;
width: 200px;
}
sup{font-size:7px;}
table{
border-collapse:collapse;
}
td,th{
border: 1px solid silver;
padding: 5px;
text-align: right;
font-size: 0.6em;
}
th{
font-size: 1em;
background-color: #4C4C4C;
color: #ffffff;
}
tr.alt td{
color:#000000;
background-color:#D1CECE;
}
aside {
float:right;
width: 400px;
background-color: #FFFFFF;
box-shadow: 2px 2px 3px #888888;
padding: 29px;
margin-top: 30px;
}
form {
margin:0 auto;
}
.login {
margin:0 auto;
}
.login td {
text-align: left;
border: 0;
}
td.title {
text-align: right;
width: 100px;
}
.notice {
color: #888888;
font-size: 12px;
margin: 2px;
}
.space {
padding-left: 100px;
}
.submit {
width:100%;
text-align:center;
padding:10px 40px;
border-radius:10px;
color: #FFFFFF;
background-color: #41B5FA;
margin: 0 auto;
}
.submit:hover {
background-color: #0919AC;
}
footer {
width: 100%;
height: 30px;
text-align: center;
background: #0B98FB;
color: #fff;
}