forked from lifenglei/learnHtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xiang.css
190 lines (190 loc) · 3.44 KB
/
xiang.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
body {
background: #000;
font: normal 14px/2 '微软雅黑';
color: #464646;
padding-top: 28px;
}
* {
padding: 0;
margin: 0;
list-style: none;
font-style:normal }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block;
}
header {
width: 980px;
margin: 0 auto;
}
header .name {
font: bold 36px/48px Arial, Helvetica, sans-serif;
color: #F90 }
header nav {
height: 50px;
background: #663;
border-radius: 5px;
text-align: center;
}
header nav, header nav a {
color: #fff }
header nav ul li {
display: inline-block;
*display:inline;
*zoom:1;
width: 200px;
line-height: 50px;
}
#container {
margin: 12px auto;
width: 980px;
overflow: hidden;
zoom: 1;
}
#container article {
width: 700px;
background: #fff;
border-radius: 5px;
float: left;
margin-bottom:10px;
padding:0 12px;
}
#container article h1 {
height: 48px;
}
#container article figure {
text-align:center;
}
#container article figure img {
max-width: 100%;
height: auto;
margin:0 auto
}
#container article section {
margin: 20px;
font-size: 12px;
}
#container article section p {
margin-top: 1em;
text-indent: 2em }
#container aside {
width: 240px;
float: right;
}
#container aside article {
background: #fff;
border-radius: 5px;
font-size: 12px;
padding: 10px;
width:220px;
margin-bottom:12px
}
#container aside article h1 {
font:bold 14px/28px '微软雅黑';
border-bottom:1px solid #eee;
height:28px;
}
#container aside article .imglist {
font-size:0
}
#container aside article .imglist li {
display:inline-block;
display:inline;
zoom:1;
width:66px;
height:50px;
border:1px solid #eee;
overflow:hidden;
margin-right:5px;
margin-top:5px;
}
#container aside article .imglist li img {
width:20%;
height:auto;
margin:2px;
}
footer {
background: #669;
width: 980px;
margin: 12px auto;
color: #fff;
height: 36px;
text-align: center;
font: normal 12px/36px '微软雅黑';
border-radius: 5px;
}
@media screen and (max-width:980px) {
header {
width:100%;
overflow:hidden;
*zoom:1;
}
header .name {
font: bold 36px/48px Arial, Helvetica, sans-serif;
color: #F90;
text-align:center
}
header nav {
background: none;
text-align: center;
height:auto;
width:100%;
}
header nav ul li {
display:inline-block;
background: #663;
border-radius: 5px;
margin:3px 0;
height:30px;
line-height:30px;
width:20%;
}
#container {
margin: 12px auto;
width: 100%;
overflow: hidden;
zoom: 1;
}
#container article {
width: 100%;
background: #fff;
border-radius: 5px;
float: none ;
padding:0;
}
#container article h1 {
width:95%;
margin:0 auto }
#container article figure {
width:95%;
margin:0 auto
}
#container aside {
width: 100%;
; float: none;
}
#container aside article {
background: #fff;
border-radius: 5px;
font-size: 12px;
padding: 10px;
width:100%;
margin-bottom:6px
}
footer {
background: #669;
width: 100%;
margin: 12px auto;
height:auto;
color: #fff;
text-align: center;
font: normal 12px/24px '微软雅黑';
border-radius: 5px;
padding:12px 0
}
footer em {
width:95%;
margin:0 auto;
display:block;
border-bottom:1px dotted #789
}
}