CSS初始化代码

css初始化代码整理。

/*初始化 start*/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,select,button,textarea,p,blockquote,table,th,td { margin:0; padding:0; border: 0;}
body { background:#fff; color:#333; font-size:14px; line-height: 1; font-family: Verdana, Arial, Helvetica, sans-serif; -webkit-text-size-adjust:100%;}
td,th,caption { font-size:14px; }
h1, h2, h3, h4, h5, h6 { font-weight:normal; font-size:100%; }
address, caption, cite, code, dfn, em, strong, th, var, i { font-style:normal; font-weight:normal;}
a,a:hover { color:#333; text-decoration:none; }
img { border:none; vertical-align:middle}
ol,ul,li { list-style:none; }
input, textarea, select, button { font:14px Verdana,Helvetica,Arial,sans-serif; outline: none; resize: none;}
table { border-collapse:collapse;border-spacing:0}
.clearfix:after {content: "."; display: block; height:0; clear:both; visibility: hidden;}
.clearfix { *zoom:1; }
/*初始化 end*/

 

posted @ 2017-12-27 13:21  Ann丶  阅读(260)  评论(0编辑  收藏  举报