Angbike个人博客 > Html+Css > CSS初始化样式

CSS初始化样式

常用css初始化:

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,h12,
p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,
em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,
center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,
tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,
figcaption,footer,header,hgroup,menu,nav,output,ruby,section,
summary,time,mark,audio,video
{margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;}
abbr[title],acronym[title]{border-bottom:thin solid;cursor:help;}
ul li{list-style:none;}
body{width:100%;height:100%;text-align:left;font-size:12px;font-family:Microsoft Yahei;background-color:#fff;}
h1,h2,h3,h4,h5,h6,h12{font-weight:bold;font-family:Microsoft Yahei,;}
h1{font-size:24px;line-height:30px;}
h2{font-size:22px;line-height:26px;}
h3{font-size:16px;line-height:24px;}
h4{font-size:14px;line-height:20px;}
h5{font-size:14px;line-height:20px;}
h6{font-size:14px;line-height:20px;}
h12{font-size:20px;line-height:26px;}
small{font-size:10px;line-height:16px;}
dl{font-size:12px;}
dt{font-weight:bold;}
a{color:#000;text-decoration:none;outline:0;}
a:hover{color:#000;text-decoration:none;}
fieldset,img{border:0;}
.clear{clear:both;}

博客评论已关闭