reset.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. @charset "utf-8";
  2. /* CSS Document */
  3. /**
  4. * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
  5. * http://cssreset.com
  6. */
  7. html, body, div, span, applet, object, iframe,
  8. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  9. a, abbr, acronym, address, big, cite, code,
  10. del, dfn, em, img, ins, kbd, q, s, samp,
  11. small, strike, strong, sub, sup, tt, var,
  12. b, u, i, center,
  13. dl, dt, dd, ol, ul, li,
  14. fieldset, form, label, legend,
  15. table, caption, tbody, tfoot, thead, tr, th, td,
  16. article, aside, canvas, details, embed,
  17. figure, figcaption, footer, header, hgroup,
  18. menu, nav, output, ruby, section, summary,
  19. time, mark, audio, video{
  20. margin: 0;
  21. padding: 0;
  22. border: 0;
  23. font-size: 100%;
  24. font: inherit;
  25. font-weight: normal;
  26. vertical-align: baseline;
  27. }
  28. /* HTML5 display-role reset for older browsers */
  29. article, aside, details, figcaption, figure,
  30. footer, header, hgroup, menu, nav, section{
  31. display: block;
  32. }
  33. ol, ul, li{
  34. list-style: none;
  35. }
  36. blockquote, q{
  37. quotes: none;
  38. }
  39. blockquote:before, blockquote:after,
  40. q:before, q:after{
  41. content: '';
  42. content: none;
  43. }
  44. table{
  45. border-collapse: collapse;
  46. border-spacing: 0;
  47. }
  48. /* custom */
  49. a{
  50. color: #7e8c8d;
  51. text-decoration: none;
  52. -webkit-backface-visibility: hidden;
  53. }
  54. ::-webkit-scrollbar{
  55. width: 5px;
  56. height: 5px;
  57. }
  58. ::-webkit-scrollbar-track-piece{
  59. background-color: rgba(0, 0, 0, 0.2);
  60. -webkit-border-radius: 6px;
  61. }
  62. ::-webkit-scrollbar-thumb:vertical{
  63. height: 5px;
  64. background-color: rgba(125, 125, 125, 0.7);
  65. -webkit-border-radius: 6px;
  66. }
  67. ::-webkit-scrollbar-thumb:horizontal{
  68. width: 5px;
  69. background-color: rgba(125, 125, 125, 0.7);
  70. -webkit-border-radius: 6px;
  71. }
  72. html, body{
  73. width: 100%;
  74. font-family:"Microsoft YaHei", "Arial", "黑体", "宋体", "微软雅黑", sans-serif;
  75. }
  76. body{
  77. line-height: 1;
  78. -webkit-text-size-adjust: none;
  79. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  80. }
  81. html{
  82. overflow-y: scroll;
  83. }
  84. /*清除浮动*/
  85. .clearfix:before,
  86. .clearfix:after{
  87. content: " ";
  88. display: inline-block;
  89. height: 0;
  90. clear: both;
  91. visibility: hidden;
  92. }
  93. .clearfix{
  94. *zoom: 1;
  95. }
  96. /*隐藏*/
  97. .dn{
  98. display: none;
  99. }