-
Notifications
You must be signed in to change notification settings - Fork 0
/
reset.html
292 lines (249 loc) · 6.83 KB
/
reset.html
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>
reset
</title>
<style>
/* 比较累赘 */
html,body,h1,h2,h3,h4,h5,h6,div,dl,dt,dd,ul,ol,li,p,blockquote,pre,hr,figure,table,caption,th,td,form,fieldset,legend,input,button,textarea,menu{margin:0;padding:0;}
header,footer,section,article,aside,nav,hgroup,address,figure,figcaption,menu,details{display:block;}
table{border-collapse:collapse;border-spacing:0;}
caption,th{text-align:left;font-weight:normal;}
html,body,fieldset,img,iframe,abbr{border:0;}
i,cite,em,var,address,dfn{font-style:normal;}
[hidefocus],summary{outline:0;}
li{list-style:none;}
h1,h2,h3,h4,h5,h6,small{font-size:100%;}
sup,sub{font-size:83%;}
pre,code,kbd,samp{font-family:inherit;}
q:before,q:after{content:none;}
textarea{overflow:auto;resize:none;}
label,summary{cursor:default;}
a,button{cursor:pointer;}
h1,h2,h3,h4,h5,h6,em,strong,b{font-weight:bold;}
del,ins,u,s,a,a:hover{text-decoration:none;}
body,textarea,input,button,select,keygen,legend{font:12px/1.14 arial,\5b8b\4f53;color:#333;outline:0;}
body{background:#fff;}
a,a:hover{color:#333;}
</style>
<style>
/* 整理后*/
body{margin: 0; font: 12px/22px Arial,"微软雅黑"; color: #333;}
header,footer,section,article,aside,nav,figure{display:block}
ul,ol{margin: 0;padding: 0;list-style: none;}
p,dl,dd{margin: 0;}
h1,h2,h3,h4{margin: 0;font-size: 100%;}
img{border:none;}
a{color: #21a557;cursor: pointer; text-decoration: none; }
a:active,a:hover{outline:none;}
a:hover{text-decoration: underline;}
strong{font-weight:normal;}
em,i{font-style:normal;}
table{border-collapse: collapse; table-layout: fixed;border-spacing:0;}
th,td{padding: 0;}
button,input{box-sizing: border-box;padding: 0;border: none;background: none;}
</style>
<style>
/* 覆盖一些样式和统一修改bug*/
html {
/*统一行高*/
line-height: 1.15;
/*防止在winPhone和ISO中,因旋转屏幕而造成的字体大小的改变*/
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body {
/*去除margin*/
margin: 0;
}
article,aside,footer,header,nav,section,figcaption,figure,main{
/*重置IE8-浏览器的display*/
display: block;
}
h1 {
/*统一字体大小及margin*/
font-size: 2em;
margin: 0.67em 0;
}
figure {
/*重置IE8浏览器的margin*/
margin: 1em 40px;
}
hr {
/*重置firefox浏览器的box-sizing*/
box-sizing: content-box;
height: 0;
/*重置IE浏览器的overflow*/
overflow: visible;
}
pre {
/*统一字体大小及字体系统*/
font-family: monospace, monospace;
font-size: 1em;
}
a {
/*移除IE10中的灰色背景*/
background-color: transparent;
-webkit-text-decoration-skip: objects;
}
abbr[title] {
/*移除Chrome57- and Firefox 39-中的border-bottom*/
border-bottom: none;
/*统一text*/-decoration
text-decoration: underline;
text-decoration: underline dotted;
}
b,strong {
/*统一字体重量*/
font-weight: bolder;
}
code,kbd,samp {
/*统一字体系列及字体大小*/
font-family: monospace, monospace;
font-size: 1em;
}
dfn {
/*重置Android4.3-浏览器的字体样式*/
font-style: italic;
}
mark {
/*重置IE8-浏览器的背景颜色及文本颜色*/
background-color: #ff0;
color: #000;
}
small {
/*统一字体大小*/
font-size: 80%;
}
sub,sup {
/*去除sub、sup对行高的影响*/
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
/*统一位置*/
bottom: -0.25em;
}
sup {
/*统一位置*/
top: -0.5em;
}
audio,video {
/*重置IE8-浏览器的display */
display: inline-block;
}
audio:not([controls]) {
/*重置iOS 4-7中的display及height*/
display: none;
height: 0;
}
img {
/*重置IE9-浏览器的border-style*/
border-style: none;
}
svg:not(:root) {
/*重置IE浏览器中的overflow*/
overflow: hidden;
}
button,input,optgroup,select,textarea {
/*统一样式*/
/*移除Firefox and Safari中的margin*/
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button,input {
/*重置IE浏览器中的overflow*/
overflow: visible;
}
button,select {
/*重置firefox浏览器中的text-transform*/
text-transform: none;
}
button,html [type="button"], [type="reset"],[type="submit"] {
/*重置webkit浏览器的appearance属性*/
-webkit-appearance: button;
}
button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner {
/*重置firefox浏览器中的border和padding*/
border-style: none;
padding: 0;
}
button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring {
/*统一outline*/
outline: 1px dotted ButtonText;
}
fieldset {
/*重置firefox浏览器的padding*/
padding: 0.35em 0.75em 0.625em;
}
legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
progress {
/*重置IE9-浏览器的display*/
display: inline-block;
/*重置Chrome*/, Firefox浏览器的vertical-align
vertical-align: baseline;
}
textarea {
/*移除IE浏览器中默认的垂直滚动条*/
overflow: auto;
}
[type="checkbox"],[type="radio"] {
/*重置IE9-浏览器的box-sizing及padding */
box-sizing: border-box;
padding: 0;
}
[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button {
/*修正Chrome中增加和减量按钮的光标样式*/
height: auto;
}
[type="search"] {
/*重置Chrome and Safari的appearance和outline-offset*/
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type="search"]::-webkit-search-cancel-button,[type="search"]::-webkit-search-decoration {
/*在macOS上删除Chrome和Safari中的内填充和取消按钮。*/
-webkit-appearance: none;
}
::-webkit-file-upload-button {
/*在iOS和Safari中,纠正无法点击的类型。*/
-webkit-appearance: button;
font: inherit;
}
details, menu {
/*重置IE8-浏览器的display*/
display: block;
}
summary {
/*统一display*/
display: list-item;
}
canvas {
/*重置IE8-浏览器的display*/
display: inline-block;
}
template {
/*重置IE浏览器的display*/
display: none;
}
[hidden] {
/*重置IE9-浏览器的display */
display: none;
}
</style>
</head>
<body></body>
</html>