1 /* 1. CSS Resets
2 网络上关于CSS重置的代码非常多。本段代码是根据Eric Meyer’s reset codes进行改编的,里面包含一点响应式图片和所有核心元素的边界框设置,这样就可以保持页边距和填充可以很好地对齐。*/
3 html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
4 margin: 0;
5 padding: 0;
6 border: 0;
7 font-size: 100%;
8 font: inherit;
9 vertical-align: baseline;
10 outline: none;
11 -webkit-box-sizing: border-box;
12 -moz-box-sizing: border-box;
13 box-sizing: border-box;
14 }
15 html { height: 101%; }
16 body {
17 font-size: 62.5%;
18 line-height: 1;
19 font-family: Arial, Tahoma, sans-serif;
20 }
21 article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
22 ol, ul { list-style: none; }
23 blockquote, q { quotes: none; }
24 blockquote:before, blockquote:after, q:before, q:after {
25 content: '';
26 content: none;
27 }
28 strong { font-weight: bold; }
29 table {
30 border-collapse: collapse;
31 border-spacing: 0;
32 }
33 img {
34 border: 0;
35 max-width: 100%;
36 }
37 p {
38 font-size: 1.2em;
39 line-height: 1.0em;
40 color: #333;
41 }