reset.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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: 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. /*max-width: 100%;*/
  48. height: auto;
  49. width: auto\9;
  50. /* ie8 */
  51. -ms-interpolation-mode: bicubic;
  52. /*为了照顾ie图片缩放失真*/
  53. }
  54. /* 初始化 */
  55. body,
  56. div,
  57. ul,
  58. li,
  59. ol,
  60. h1,
  61. h2,
  62. h3,
  63. h4,
  64. h5,
  65. h6,
  66. input,
  67. textarea,
  68. select,
  69. p,
  70. dl,
  71. dt,
  72. dd,
  73. a,
  74. img,
  75. button,
  76. form,
  77. table,
  78. th,
  79. tr,
  80. td,
  81. tbody,
  82. article,
  83. aside,
  84. details,
  85. figcaption,
  86. figure,
  87. footer,
  88. header,
  89. hgroup,
  90. menu,
  91. nav,
  92. section {
  93. margin: 0;
  94. padding: 0;
  95. border: none;
  96. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  97. /*取消链接高亮*/
  98. box-sizing: border-box;
  99. }
  100. em,
  101. i {
  102. font-style: normal;
  103. }
  104. strong {
  105. font-weight: bold;
  106. }
  107. .clearfix:after {
  108. content: "";
  109. display: block;
  110. visibility: hidden;
  111. height: 0;
  112. clear: both;
  113. }
  114. .clearfix {
  115. zoom: 1;
  116. }
  117. a {
  118. text-decoration: none;
  119. }
  120. a:hover,
  121. a:active,
  122. a:visited {
  123. text-decoration: none;
  124. }
  125. ul,
  126. ol {
  127. list-style: none;
  128. }
  129. h1,
  130. h2,
  131. h3,
  132. h4,
  133. h5,
  134. h6 {
  135. font-size: 100%;
  136. }
  137. img {
  138. border: none;
  139. vertical-align: middle;
  140. -webkit-user-drag: none;
  141. }
  142. body,
  143. html,
  144. #app {
  145. width: 100%;
  146. height: 100%;
  147. margin: 0;
  148. position: relative;
  149. overflow: hidden;
  150. }