reset.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. /* `XHTML, HTML4, HTML5 Reset
  2. ----------------------------------------------------------------------------------------------------*/
  3. a,
  4. abbr,
  5. acronym,
  6. address,
  7. applet,
  8. article,
  9. aside,
  10. audio,
  11. b,
  12. big,
  13. blockquote,
  14. body,
  15. canvas,
  16. caption,
  17. center,
  18. cite,
  19. code,
  20. dd,
  21. del,
  22. details,
  23. dfn,
  24. dialog,
  25. div,
  26. dl,
  27. dt,
  28. em,
  29. embed,
  30. fieldset,
  31. figcaption,
  32. figure,
  33. font,
  34. footer,
  35. form,
  36. h1,
  37. h2,
  38. h3,
  39. h4,
  40. h5,
  41. h6,
  42. header,
  43. hgroup,
  44. hr,
  45. html,
  46. i,
  47. iframe,
  48. img,
  49. ins,
  50. kbd,
  51. label,
  52. legend,
  53. li,
  54. mark,
  55. menu,
  56. meter,
  57. nav,
  58. object,
  59. ol,
  60. output,
  61. p,
  62. pre,
  63. progress,
  64. q,
  65. rp,
  66. rt,
  67. ruby,
  68. s,
  69. samp,
  70. section,
  71. small,
  72. span,
  73. strike,
  74. strong,
  75. sub,
  76. summary,
  77. sup,
  78. table,
  79. tbody,
  80. td,
  81. tfoot,
  82. th,
  83. thead,
  84. time,
  85. tr,
  86. tt,
  87. u,
  88. ul,
  89. var,
  90. video,
  91. xmp {
  92. border: 0;
  93. margin: 0;
  94. padding: 0;
  95. font-size: 100%;
  96. }
  97. html,
  98. body {
  99. height: 100%;
  100. }
  101. article,
  102. aside,
  103. details,
  104. figcaption,
  105. figure,
  106. footer,
  107. header,
  108. hgroup,
  109. menu,
  110. nav,
  111. section {
  112. /*
  113. Override the default (display: inline) for
  114. browsers that do not recognize HTML5 tags.
  115. IE8 (and lower) requires a shiv:
  116. http://ejohn.org/blog/html5-shiv
  117. */
  118. display: block;
  119. }
  120. b,
  121. strong {
  122. /*
  123. Makes browsers agree.
  124. IE + Opera = font-weight: bold.
  125. Gecko + WebKit = font-weight: bolder.
  126. */
  127. font-weight: bold;
  128. }
  129. img {
  130. color: transparent;
  131. font-size: 0;
  132. vertical-align: middle;
  133. /*
  134. For IE.
  135. http://css-tricks.com/ie-fix-bicubic-scaling-for-images
  136. */
  137. -ms-interpolation-mode: bicubic;
  138. }
  139. li {
  140. /*
  141. For IE6 + IE7:
  142. "display: list-item" keeps bullets from
  143. disappearing if hasLayout is triggered.
  144. */
  145. display: list-item;
  146. list-style: none;
  147. }
  148. table {
  149. border-collapse: collapse;
  150. border-spacing: 0;
  151. }
  152. th,
  153. td,
  154. caption {
  155. font-weight: normal;
  156. vertical-align: top;
  157. text-align: left;
  158. }
  159. q {
  160. quotes: none;
  161. }
  162. q:before,
  163. q:after {
  164. content: '';
  165. content: none;
  166. }
  167. sub,
  168. sup,
  169. small {
  170. font-size: 75%;
  171. }
  172. sub,
  173. sup {
  174. line-height: 0;
  175. position: relative;
  176. vertical-align: baseline;
  177. }
  178. sub {
  179. bottom: -0.25em;
  180. }
  181. sup {
  182. top: -0.5em;
  183. }
  184. svg {
  185. /*
  186. For IE9. Without, occasionally draws shapes
  187. outside the boundaries of <svg> rectangle.
  188. */
  189. overflow: hidden;
  190. }