reset.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /* 禁用iPhone中Safari的字号自动调整 */
  2. * {
  3. -webkit-box-sizing: border-box;
  4. -moz-box-sizing: border-box;
  5. box-sizing: border-box;
  6. outline: none;
  7. font-family: Lato, Roboto, LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, Helvetica Neue, Tahoma, PingFang SC, Microsoft Yahei, Arial, Hiragino Sans GB, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  8. -webkit-font-smoothing: antialiased;
  9. user-select: none;
  10. }
  11. html {
  12. -webkit-text-size-adjust: 100%;
  13. -ms-text-size-adjust: 100%;
  14. }
  15. /* 去除iPhone中默认的input样式 */
  16. input[type="submit"],
  17. input[type="reset"],
  18. input[type="button"],
  19. input,
  20. button {
  21. /* -webkit-appearance:none; */
  22. resize: none;
  23. }
  24. input::-webkit-outer-spin-button,
  25. input::-webkit-inner-spin-button {
  26. -webkit-appearance: none;
  27. }
  28. button {
  29. border: none;
  30. }
  31. /* 设置HTML5元素为块 */
  32. article,
  33. aside,
  34. details,
  35. figcaption,
  36. figure,
  37. footer,
  38. header,
  39. hgroup,
  40. menu,
  41. nav,
  42. section {
  43. display: block;
  44. }
  45. /* 图片自适应 */
  46. img {
  47. /* ie8 */
  48. -ms-interpolation-mode: bicubic;
  49. /*为了照顾ie图片缩放失真*/
  50. }
  51. /* 初始化 */
  52. body,
  53. div,
  54. ul,
  55. li,
  56. ol,
  57. h1,
  58. h2,
  59. h3,
  60. h4,
  61. h5,
  62. h6,
  63. input,
  64. textarea,
  65. select,
  66. p,
  67. dl,
  68. dt,
  69. dd,
  70. a,
  71. img,
  72. button,
  73. form,
  74. table,
  75. th,
  76. tr,
  77. td,
  78. tbody,
  79. article,
  80. aside,
  81. details,
  82. figcaption,
  83. figure,
  84. footer,
  85. header,
  86. hgroup,
  87. menu,
  88. nav,
  89. section {
  90. margin: 0;
  91. padding: 0;
  92. border: none;
  93. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  94. /*取消链接高亮*/
  95. box-sizing: border-box;
  96. }
  97. em,
  98. i {
  99. font-style: normal;
  100. }
  101. strong {
  102. font-weight: bold;
  103. }
  104. .clearfix:after {
  105. content: "";
  106. display: block;
  107. visibility: hidden;
  108. height: 0;
  109. clear: both;
  110. }
  111. .clearfix {
  112. zoom: 1;
  113. }
  114. a {
  115. text-decoration: none;
  116. }
  117. a:hover,
  118. a:active,
  119. a:visited {
  120. text-decoration: none;
  121. }
  122. ul,
  123. ol {
  124. list-style: none;
  125. }
  126. h1,
  127. h2,
  128. h3,
  129. h4,
  130. h5,
  131. h6 {
  132. font-size: 100%;
  133. }
  134. img {
  135. border: none;
  136. vertical-align: middle;
  137. -webkit-user-drag: none;
  138. }
  139. body,
  140. html,
  141. #app {
  142. width: 100%;
  143. height: 100%;
  144. margin: 0;
  145. position: relative;
  146. overflow: hidden;
  147. }