reset.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. }
  8. html {
  9. -webkit-text-size-adjust: 100%;
  10. -ms-text-size-adjust: 100%;
  11. }
  12. /* 去除iPhone中默认的input样式 */
  13. input[type="submit"],
  14. input[type="reset"],
  15. input[type="button"],
  16. input,
  17. button {
  18. /* -webkit-appearance:none; */
  19. resize: none;
  20. }
  21. input::-webkit-outer-spin-button,
  22. input::-webkit-inner-spin-button {
  23. -webkit-appearance: none;
  24. }
  25. button {
  26. border: none;
  27. }
  28. /* 设置HTML5元素为块 */
  29. article,
  30. aside,
  31. details,
  32. figcaption,
  33. figure,
  34. footer,
  35. header,
  36. hgroup,
  37. menu,
  38. nav,
  39. section {
  40. display: block;
  41. }
  42. /* 图片自适应 */
  43. img {
  44. /*max-width: 100%;*/
  45. height: auto;
  46. width: auto\9;
  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. }
  96. body {
  97. font-family: Arial, sans-serif, 黑体, 宋体;
  98. color: #333333;
  99. background-color: #FFFFFF;
  100. }
  101. em,
  102. i {
  103. font-style: normal;
  104. }
  105. strong {
  106. font-weight: normal;
  107. }
  108. .clearfix:after {
  109. content: "";
  110. display: block;
  111. visibility: hidden;
  112. height: 0;
  113. clear: both;
  114. }
  115. .clearfix {
  116. zoom: 1;
  117. }
  118. a {
  119. text-decoration: none;
  120. font-family: Arial, sans-serif, 黑体, 宋体;
  121. }
  122. a:hover,
  123. a:active,
  124. a:visited {
  125. text-decoration: none;
  126. }
  127. ul,
  128. ol {
  129. list-style: none;
  130. }
  131. h1,
  132. h2,
  133. h3,
  134. h4,
  135. h5,
  136. h6 {
  137. font-size: 100%;
  138. font-family: Arial, sans-serif, 黑体, 宋体;
  139. ;
  140. }
  141. img {
  142. border: none;
  143. vertical-align: middle;
  144. }
  145. body,
  146. html,
  147. #app {
  148. width: 100%;
  149. height: 100%;
  150. margin: 0 auto;
  151. font-family: Arial, sans-serif, 黑体, 宋体;
  152. position: relative;
  153. }
  154. .clear-both {
  155. clear: both;
  156. }