CSS Reset

适合PC端的 CSS Reset

  1 @charset "utf-8";html {
  2     background: white;
  3     color: black
  4 }
  5 
  6 body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
  7     margin: 0;
  8     padding: 0
  9 }
 10 
 11 body,button,input,select,textarea {
 12     font: 12px \5b8b\4f53,arial,sans-serif
 13 }
 14 
 15 input,select,textarea {
 16     font-size: 100%
 17 }
 18 
 19 table {
 20     border-collapse: collapse;
 21     border-spacing: 0
 22 }
 23 
 24 th {
 25     text-align: inherit
 26 }
 27 
 28 fieldset,img {
 29     border: 0
 30 }
 31 
 32 iframe {
 33     display: block
 34 }
 35 
 36 abbr,acronym {
 37     border: 0;
 38     font-variant: normal
 39 }
 40 
 41 del {
 42     text-decoration: line-through
 43 }
 44 
 45 address,caption,cite,code,dfn,em,th,var {
 46     font-style: normal;
 47     font-weight: 500
 48 }
 49 
 50 ol,ul {
 51     list-style: none
 52 }
 53 
 54 caption,th {
 55     text-align: left
 56 }
 57 
 58 h1,h2,h3,h4,h5,h6 {
 59     font-size: 100%;
 60     font-weight: 500
 61 }
 62 
 63 q:before,q:after {
 64     content: ''
 65 }
 66 
 67 sub,sup {
 68     font-size: 75%;
 69     line-height: 0;
 70     position: relative;
 71     vertical-align: baseline
 72 }
 73 
 74 sup {
 75     top: -0.5em
 76 }
 77 
 78 sub {
 79     bottom: -0.25em
 80 }
 81 
 82 a:hover {
 83     text-decoration: underline
 84 }
 85 
 86 ins,a {
 87     text-decoration: none
 88 }
 89 
 90 a:focus,*:focus {
 91     outline: 0
 92 }
 93 
 94 .clearfix:before,.clearfix:after {
 95     content: "";
 96     display: table
 97 }
 98 
 99 .clearfix:after {
100     clear: both;
101     overflow: hidden
102 }
103 
104 .clearfix {
105     zoom:1}
106 
107 .clear {
108     clear: both;
109     display: block;
110     font-size: 0;
111     height: 0;
112     line-height: 0;
113     overflow: hidden
114 }
115 
116 .hide {
117     display: none
118 }
119 
120 .block {
121     display: block
122 }
123 
124 .fl,.fr {
125     display: inline
126 }
127 
128 .fl {
129     float: left
130 }
131 
132 .fr {
133     float: right
134 }

 

posted @ 2016-04-02 17:11  卷柏的花期  阅读(275)  评论(0编辑  收藏  举报