当前位置:首页 > 前端 > 正文

2.reset.css文件

重置CSS样式:

  1 /* http://meyerweb.com/eric/tools/css/reset/ 
  2    v2.0 | 20110126
  3    License: none (public domain)
  4 */
  5 
  6 html,
  7 body,
  8 div,
  9 span,
 10 applet,
 11 object,
 12 iframe,
 13 h1,
 14 h2,
 15 h3,
 16 h4,
 17 h5,
 18 h6,
 19 p,
 20 blockquote,
 21 pre,
 22 a,
 23 abbr,
 24 acronym,
 25 address,
 26 big,
 27 cite,
 28 code,
 29 del,
 30 dfn,
 31 em,
 32 img,
 33 ins,
 34 kbd,
 35 q,
 36 s,
 37 samp,
 38 small,
 39 strike,
 40 strong,
 41 sub,
 42 sup,
 43 tt,
 44 var,
 45 b,
 46 u,
 47 i,
 48 center,
 49 dl,
 50 dt,
 51 dd,
 52 ol,
 53 ul,
 54 li,
 55 fieldset,
 56 form,
 57 label,
 58 legend,
 59 table,
 60 caption,
 61 tbody,
 62 tfoot,
 63 thead,
 64 tr,
 65 th,
 66 td,
 67 article,
 68 aside,
 69 canvas,
 70 details,
 71 embed,
 72 figure,
 73 figcaption,
 74 footer,
 75 header,
 76 hgroup,
 77 menu,
 78 nav,
 79 output,
 80 ruby,
 81 section,
 82 summary,
 83 time,
 84 mark,
 85 audio,
 86 video {
 87     margin: 0;
 88     padding: 0;
 89     border: 0;
 90     font-size: 100%;
 91     font: inherit;
 92     vertical-align: baseline;
 93 }
 94 
 95 /* HTML5 display-role reset for older browsers */
 96 article,
 97 aside,
 98 details,
 99 figcaption,
100 figure,
101 footer,
102 header,
103 hgroup,
104 menu,
105 nav,
106 section {
107     display: block;
108 }
109 
110 body {
111     line-height: 1;
112 }
113 
114 ol,
115 ul {
116     list-style: none;
117 }
118 
119 blockquote,
120 q {
121     quotes: none;
122 }
123 
124 blockquote:before,
125 blockquote:after,
126 q:before,
127 q:after {
128     content: ‘‘;
129     content: none;
130 }
131 
132 table {
133     border-collapse: collapse;
134     border-spacing: 0;
135 }
136 
137 a {
138     text-decoration: none;
139     color: inherit;
140 }
reset.css

 

 

 

 

/* http://meyerweb.com/eric/tools/css/reset/     v2.0 | 20110126    License: none (public domain) */
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 {      margin:  0;      padding:  0;      border:  0;      font-size:  100%;      font:  inherit;      vertical-align:  baseline; }
/* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {      display:  block; }
body {      line-height:  1; }
ol, ul {      list-style:  none; }
blockquote, q {      quotes:  none; }
blockquote:before, blockquote:after, q:before, q:after {      content:  ‘‘;      content:  none; }
table {      border-collapse:  collapse;      border-spacing:  0; }
a {      text-decoration:  none;      color:  inherit; }