清除CSS所有的默认样式

 1  /*
 2  * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
 3  * http://cssreset.com
 4 */
 5 html, body, div, span, applet, object, iframe,
 6 h1, h2, h3, h4, h5, h6, p, blockquote, pre,
 7 a, abbr, acronym, address, big, cite, code,
 8 del, dfn, em, img, ins, kbd, q, s, samp,
 9 small, strike, strong, sub, sup, tt, var,
10 b, u, i, center,
11 dl, dt, dd, ol, ul, li,
12 fieldset, form, label, legend,
13 table, caption, tbody, tfoot, thead, tr, th, td,
14 article, aside, canvas, details, embed,
15 figure, figcaption, footer, header,
16 menu, nav, output, ruby, section, summary,
17 time, mark, audio, video, input {
18     margin: 0;
19     padding: 0;
20     border: 0;
21     font-size: 100%;
22     font-weight: normal;
23     vertical-align: baseline;
24 }
25 html,body{
26   height:100%;
27 }
28 
29 /* HTML5 display-role reset for older browsers */
30 article, aside, details, figcaption, figure,
31 footer, header, menu, nav, section {
32     display: block;
33 }
34 
35 body {
36     line-height: 1;
37 }
38 
39 blockquote, q {
40     quotes: none;
41 }
42 
43 blockquote:before, blockquote:after,
44 q:before, q:after {
45     content: none;
46 }
47 
48 table {
49     border-collapse: collapse;
50     border-spacing: 0;
51 }
52 
53 /* custom */
54 a {
55     color: #7e8c8d;
56     text-decoration: none;
57     -webkit-backface-visibility: hidden;
58 }
59 
60 li {
61     list-style: none;
62 }
63 
64 ::-webkit-scrollbar {
65     width: 5px;
66     height: 5px;
67 }
68 
69 ::-webkit-scrollbar-track-piece {
70     background-color: rgba(0, 0, 0, 0.2);
71     -webkit-border-radius: 6px;
72 }
73 
74 ::-webkit-scrollbar-thumb:vertical {
75     height: 5px;
76     background-color: rgba(125, 125, 125, 0.7);
77     -webkit-border-radius: 6px;
78 }
79 
80 ::-webkit-scrollbar-thumb:horizontal {
81     width: 5px;
82     background-color: rgba(125, 125, 125, 0.7);
83     -webkit-border-radius: 6px;
84 }
85 
86 html, body {
87     width: 100%;
88 }
89 
90 body {
91     -webkit-text-size-adjust: none;
92     -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
93 }

Reference

CSS Tools: Reset CSS

猜你喜欢

转载自www.cnblogs.com/viplued/p/9297569.html
今日推荐