reset.css 1.8 KB

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