1. /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
    2. /* Document
    3. ========================================================================== */
    4. /**
    5. * 1. Correct the line height in all browsers.
    6. * 2. Prevent adjustments of font size after orientation changes in
    7. * IE on Windows Phone and in iOS.
    8. */
    9. html {
    10. line-height: 1; /* 1 */
    11. -ms-text-size-adjust: 100%; /* 2 */
    12. -webkit-text-size-adjust: 100%; /* 2 */
    13. box-sizing: border-box;
    14. -moz-osx-font-smoothing: grayscale;
    15. -webkit-font-smoothing: antialiased;
    16. text-rendering: optimizelegibility;
    17. }
    18. *,*:before, *:after{
    19. box-sizing: inherit;
    20. }
    21. /* Sections
    22. ========================================================================== */
    23. /**
    24. * Remove the margin in all browsers (opinionated).
    25. */
    26. body, ul, li {
    27. margin: 0;
    28. line-height: 1;
    29. }
    30. /**
    31. * Add the correct display in IE 9-.
    32. */
    33. article,
    34. aside,
    35. footer,
    36. header,
    37. nav,
    38. section {
    39. display: block;
    40. }
    41. /**
    42. * Correct the font size and margin on `h1` elements within `section` and
    43. * `article` contexts in Chrome, Firefox, and Safari.
    44. */
    45. h1 {
    46. font-size: 2em;
    47. margin: 0.67em 0;
    48. }
    49. /* Grouping content
    50. ========================================================================== */
    51. /**
    52. * Add the correct display in IE 9-.
    53. * 1. Add the correct display in IE.
    54. */
    55. figcaption,
    56. figure,
    57. main { /* 1 */
    58. display: block;
    59. }
    60. /**
    61. * Add the correct margin in IE 8.
    62. */
    63. figure {
    64. margin: 1em 40px;
    65. }
    66. /**
    67. * 1. Add the correct box sizing in Firefox.
    68. * 2. Show the overflow in Edge and IE.
    69. */
    70. hr {
    71. box-sizing: content-box; /* 1 */
    72. height: 0; /* 1 */
    73. overflow: visible; /* 2 */
    74. }
    75. /**
    76. * 1. Correct the inheritance and scaling of font size in all browsers.
    77. * 2. Correct the odd `em` font sizing in all browsers.
    78. */
    79. pre {
    80. font-family: monospace, monospace; /* 1 */
    81. font-size: 1em; /* 2 */
    82. }
    83. /* Text-level semantics
    84. ========================================================================== */
    85. /**
    86. * 1. Remove the gray background on active links in IE 10.
    87. * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
    88. */
    89. a {
    90. background-color: transparent; /* 1 */
    91. -webkit-text-decoration-skip: objects; /* 2 */
    92. }
    93. /**
    94. * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
    95. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
    96. */
    97. abbr[title] {
    98. border-bottom: none; /* 1 */
    99. text-decoration: underline; /* 2 */
    100. text-decoration: underline dotted; /* 2 */
    101. }
    102. /**
    103. * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
    104. */
    105. b,
    106. strong {
    107. font-weight: inherit;
    108. }
    109. /**
    110. * Add the correct font weight in Chrome, Edge, and Safari.
    111. */
    112. b,
    113. strong {
    114. font-weight: bolder;
    115. }
    116. /**
    117. * 1. Correct the inheritance and scaling of font size in all browsers.
    118. * 2. Correct the odd `em` font sizing in all browsers.
    119. */
    120. code,
    121. kbd,
    122. samp {
    123. font-family: monospace, monospace; /* 1 */
    124. font-size: 1em; /* 2 */
    125. }
    126. /**
    127. * Add the correct font style in Android 4.3-.
    128. */
    129. dfn {
    130. font-style: italic;
    131. }
    132. /**
    133. * Add the correct background and color in IE 9-.
    134. */
    135. mark {
    136. background-color: #ff0;
    137. color: #000;
    138. }
    139. /**
    140. * Add the correct font size in all browsers.
    141. */
    142. small {
    143. font-size: 80%;
    144. }
    145. /**
    146. * Prevent `sub` and `sup` elements from affecting the line height in
    147. * all browsers.
    148. */
    149. sub,
    150. sup {
    151. font-size: 75%;
    152. line-height: 0;
    153. position: relative;
    154. vertical-align: baseline;
    155. }
    156. sub {
    157. bottom: -0.25em;
    158. }
    159. sup {
    160. top: -0.5em;
    161. }
    162. /* Embedded content
    163. ========================================================================== */
    164. /**
    165. * Add the correct display in IE 9-.
    166. */
    167. audio,
    168. video {
    169. display: inline-block;
    170. }
    171. /**
    172. * Add the correct display in iOS 4-7.
    173. */
    174. audio:not([controls]) {
    175. display: none;
    176. height: 0;
    177. }
    178. /**
    179. * Remove the border on images inside links in IE 10-.
    180. */
    181. img {
    182. border-style: none;
    183. width: 100%;
    184. }
    185. /**
    186. * Hide the overflow in IE.
    187. */
    188. svg:not(:root) {
    189. overflow: hidden;
    190. }
    191. /* Forms
    192. ========================================================================== */
    193. /**
    194. * 1. Change the font styles in all browsers (opinionated).
    195. * 2. Remove the margin in Firefox and Safari.
    196. */
    197. button,
    198. input,
    199. optgroup,
    200. select,
    201. textarea {
    202. font-family: sans-serif; /* 1 */
    203. font-size: 100%; /* 1 */
    204. line-height: 1.15; /* 1 */
    205. margin: 0; /* 2 */
    206. }
    207. /**
    208. * Show the overflow in IE.
    209. * 1. Show the overflow in Edge.
    210. */
    211. button,
    212. input { /* 1 */
    213. overflow: visible;
    214. }
    215. /**
    216. * Remove the inheritance of text transform in Edge, Firefox, and IE.
    217. * 1. Remove the inheritance of text transform in Firefox.
    218. */
    219. button,
    220. select { /* 1 */
    221. text-transform: none;
    222. }
    223. /**
    224. * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
    225. * controls in Android 4.
    226. * 2. Correct the inability to style clickable types in iOS and Safari.
    227. */
    228. button,
    229. html [type="button"], /* 1 */
    230. [type="reset"],
    231. [type="submit"] {
    232. -webkit-appearance: button; /* 2 */
    233. }
    234. /**
    235. * Remove the inner border and padding in Firefox.
    236. */
    237. button::-moz-focus-inner,
    238. [type="button"]::-moz-focus-inner,
    239. [type="reset"]::-moz-focus-inner,
    240. [type="submit"]::-moz-focus-inner {
    241. border-style: none;
    242. padding: 0;
    243. }
    244. /**
    245. * Restore the focus styles unset by the previous rule.
    246. */
    247. button:-moz-focusring,
    248. [type="button"]:-moz-focusring,
    249. [type="reset"]:-moz-focusring,
    250. [type="submit"]:-moz-focusring {
    251. outline: 1px dotted ButtonText;
    252. }
    253. /**
    254. * Correct the padding in Firefox.
    255. */
    256. fieldset {
    257. padding: 0.35em 0.75em 0.625em;
    258. }
    259. /**
    260. * 1. Correct the text wrapping in Edge and IE.
    261. * 2. Correct the color inheritance from `fieldset` elements in IE.
    262. * 3. Remove the padding so developers are not caught out when they zero out
    263. * `fieldset` elements in all browsers.
    264. */
    265. legend {
    266. box-sizing: border-box; /* 1 */
    267. color: inherit; /* 2 */
    268. display: table; /* 1 */
    269. max-width: 100%; /* 1 */
    270. padding: 0; /* 3 */
    271. white-space: normal; /* 1 */
    272. }
    273. /**
    274. * 1. Add the correct display in IE 9-.
    275. * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
    276. */
    277. progress {
    278. display: inline-block; /* 1 */
    279. vertical-align: baseline; /* 2 */
    280. }
    281. /**
    282. * Remove the default vertical scrollbar in IE.
    283. */
    284. textarea {
    285. overflow: auto;
    286. }
    287. /**
    288. * 1. Add the correct box sizing in IE 10-.
    289. * 2. Remove the padding in IE 10-.
    290. */
    291. [type="checkbox"],
    292. [type="radio"] {
    293. box-sizing: border-box; /* 1 */
    294. padding: 0; /* 2 */
    295. }
    296. /**
    297. * Correct the cursor style of increment and decrement buttons in Chrome.
    298. */
    299. [type="number"]::-webkit-inner-spin-button,
    300. [type="number"]::-webkit-outer-spin-button {
    301. height: auto;
    302. }
    303. /**
    304. * 1. Correct the odd appearance in Chrome and Safari.
    305. * 2. Correct the outline style in Safari.
    306. */
    307. [type="search"] {
    308. -webkit-appearance: textfield; /* 1 */
    309. outline-offset: -2px; /* 2 */
    310. }
    311. /**
    312. * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
    313. */
    314. [type="search"]::-webkit-search-cancel-button,
    315. [type="search"]::-webkit-search-decoration {
    316. -webkit-appearance: none;
    317. }
    318. /**
    319. * 1. Correct the inability to style clickable types in iOS and Safari.
    320. * 2. Change font properties to `inherit` in Safari.
    321. */
    322. ::-webkit-file-upload-button {
    323. -webkit-appearance: button; /* 1 */
    324. font: inherit; /* 2 */
    325. }
    326. /* Interactive
    327. ========================================================================== */
    328. /*
    329. * Add the correct display in IE 9-.
    330. * 1. Add the correct display in Edge, IE, and Firefox.
    331. */
    332. details, /* 1 */
    333. menu {
    334. display: block;
    335. }
    336. /*
    337. * Add the correct display in all browsers.
    338. */
    339. summary {
    340. display: list-item;
    341. }
    342. /* Scripting
    343. ========================================================================== */
    344. /**
    345. * Add the correct display in IE 9-.
    346. */
    347. canvas {
    348. display: inline-block;
    349. }
    350. /**
    351. * Add the correct display in IE.
    352. */
    353. template {
    354. display: none;
    355. }
    356. /* Hidden
    357. ========================================================================== */
    358. /**
    359. * Add the correct display in IE 10-.
    360. */
    361. [hidden] {
    362. display: none;
    363. }
    364. /*选中状态修改*/
    365. /*::selection {
    366. background: #f60;
    367. color: #fff;
    368. }*/
    369. /*placegolder颜色修改(可能不生效)*/
    370. /*::-webkit-input-placeholder {
    371. color: #c03;
    372. }
    373. :-moz-placeholder {
    374. color: #c03;
    375. }
    376. ::-moz-placeholder {
    377. color: #c03;
    378. }
    379. :-ms-input-placeholder {
    380. color: #c03;
    381. }*/