reset.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. html,
  2. body,
  3. div,
  4. span,
  5. object,
  6. iframe,
  7. h1,
  8. h2,
  9. h3,
  10. h4,
  11. h5,
  12. h6,
  13. p,
  14. blockquote,
  15. pre,
  16. abbr,
  17. address,
  18. cite,
  19. code,
  20. del,
  21. dfn,
  22. em,
  23. img,
  24. ins,
  25. kbd,
  26. q,
  27. samp,
  28. small,
  29. strong,
  30. sub,
  31. sup,
  32. var,
  33. b,
  34. i,
  35. dl,
  36. dt,
  37. dd,
  38. ol,
  39. ul,
  40. li,
  41. fieldset,
  42. form,
  43. label,
  44. legend,
  45. table,
  46. caption,
  47. tbody,
  48. tfoot,
  49. thead,
  50. tr,
  51. th,
  52. td,
  53. article,
  54. aside,
  55. canvas,
  56. details,
  57. figcaption,
  58. figure,
  59. footer,
  60. header,
  61. hgroup,
  62. menu,
  63. nav,
  64. section,
  65. summary,
  66. time,
  67. mark,
  68. audio,
  69. video {
  70. margin: 0;
  71. padding: 0;
  72. border: 0;
  73. outline: 0;
  74. font-size: 100%;
  75. vertical-align: baseline;
  76. background: transparent;
  77. }
  78. html {
  79. -ms-text-size-adjust: 100%;
  80. -webkit-text-size-adjust: 100%
  81. }
  82. body, body {
  83. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  84. }
  85. *,
  86. ::after,
  87. ::before {
  88. -webkit-box-sizing: border-box;
  89. box-sizing: border-box
  90. }
  91. article,
  92. aside,
  93. canvas,
  94. details,
  95. figcaption,
  96. figure,
  97. footer,
  98. header,
  99. hgroup,
  100. menu,
  101. nav,
  102. section,
  103. summary {
  104. display: block;
  105. }
  106. nav ul {
  107. list-style: none;
  108. }
  109. blockquote,
  110. q {
  111. quotes: none;
  112. }
  113. blockquote:before,
  114. blockquote:after,
  115. q:before,
  116. q:after {
  117. content: '';
  118. content: none;
  119. }
  120. a {
  121. margin: 0;
  122. padding: 0;
  123. border: 0;
  124. font-size: 100%;
  125. color: inherit;
  126. outline: 0;
  127. background-color: transparent;
  128. text-decoration: none;
  129. vertical-align: baseline;
  130. -moz-outline-style: none;
  131. -webkit-text-decoration-skip: objects;
  132. }
  133. a:link,
  134. a:hover,
  135. a:active,
  136. a:visited {
  137. text-decoration: none;
  138. color: inherit;
  139. }
  140. select {
  141. outline: none;
  142. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  143. }
  144. ins {
  145. background-color: #ff9;
  146. color: #000;
  147. text-decoration: none;
  148. }
  149. mark {
  150. background-color: #ff9;
  151. color: #000;
  152. font-style: italic;
  153. font-weight: bold;
  154. }
  155. del {
  156. text-decoration: line-through;
  157. }
  158. abbr[title],
  159. dfn[title] {
  160. border-bottom: 1Px dotted #000;
  161. cursor: help;
  162. }
  163. table {
  164. border-collapse: collapse;
  165. border-spacing: 0;
  166. }
  167. hr {
  168. display: block;
  169. height: 1Px;
  170. border: 0;
  171. border-top: 1Px solid #cccccc;
  172. margin: 1em 0;
  173. padding: 0;
  174. }
  175. input,
  176. select {
  177. vertical-align: middle;
  178. }
  179. i {
  180. font-style: normal
  181. }
  182. strong {
  183. font-weight: bolder
  184. }
  185. small {
  186. font-size: 80%
  187. }
  188. img {
  189. border-style: none
  190. }
  191. ul {
  192. padding: 0;
  193. list-style: none
  194. }
  195. li {
  196. list-style: none;
  197. }
  198. button,
  199. input,
  200. textarea {
  201. font: inherit;
  202. margin: 0;
  203. padding: 0;
  204. color: inherit;
  205. border-style: none;
  206. outline-style: none;
  207. background: 0 0;
  208. -webkit-appearance: none;
  209. }
  210. button {
  211. border: 0 none;
  212. }
  213. input,
  214. textarea {
  215. color: #666
  216. }
  217. input::-webkit-input-placeholder,
  218. textarea::-webkit-input-placeholder {
  219. opacity: 1;
  220. color: #999
  221. }
  222. input::placeholder,
  223. textarea::placeholder {
  224. opacity: 1;
  225. color: #999
  226. }
  227. input:read-only:not([value=""]),
  228. textarea:read-only:not([value=""]) {
  229. -webkit-text-fill-color: #666
  230. }
  231. textarea {
  232. resize: none
  233. }
  234. button {
  235. cursor: pointer
  236. }
  237. button::-moz-focus-inner,
  238. button:-moz-focusring {
  239. border: 0;
  240. outline: 0
  241. }
  242. h1,
  243. h2,
  244. h3,
  245. h4,
  246. h5,
  247. tr,
  248. th {
  249. font-weight: normal;
  250. }
  251. body, html {
  252. box-sizing: border-box;
  253. height: 100%;
  254. color: #111;
  255. line-height: 1.5;
  256. background-color: white;
  257. }
  258. ::-webkit-input-placeholder {
  259. color: #c0c4cc !important;
  260. }
  261. ::-moz-placeholder {
  262. color: #c0c4cc !important;
  263. }
  264. ::-ms-input-placeholder {
  265. color: #c0c4cc !important;
  266. }
  267. input:read-only:not([value=""]), textarea:read-only:not([value=""]) {
  268. -webkit-text-fill-color: inherit;
  269. }
  270. .clearfix::after {
  271. visibility: hidden;
  272. display: block;
  273. font-size: 0;
  274. content: " ";
  275. clear: both;
  276. height: 0
  277. }
  278. ::-webkit-scrollbar {
  279. display: none;
  280. }
  281. // 解决百度地图动态生成的iframe标签导致滚动bug
  282. iframe {
  283. display: block;
  284. }