html页面公共样式

来源:互联网 发布:算法是一个什么的集合 编辑:程序博客网 时间:2024/04/30 06:55
@charset "utf-8";


/*css Rest 开始*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,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,video{
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    margin: 0;
    padding: 0;
}
blockquote,q{quotes: none;}
blockquote:before,blockquote:after,q:before,q:after{content: none;}
table{border-collapse: collapse;border-spacing:0;}
/*css Reset 结束*/


/*公共样式开始*/
body,th,td,button,input,select,textarea{font: 12px/1.62 "microsoft yahei","hiragino sans gb",
"helvetica neue","helvetica","tahoma","arial","verdana","sans-serif";color: #333;}
ol,ul{list-style: none;}
img{border: 0;vertical-align: middle;}
a{text-decoration: none;outline:none; blr:expression(this.onfocus=this.blur());}
h1{font-size: 36px;}
h2{font-size: 30px;}
h3{font-size: 24px;}
h4{font-size: 18px;}
h5{font-size: 14px;}
h6{font-size: 12px;}
.left,.l{float: left;}
.right,.r{float: right;}
.clearfix,.cf{"zoom:1"}
.clearfix:after,.cf:after{content: ".";display:block;height: 0;clear: both;visibility:hidden;}
.clear,.cl{clear: both;}
/*公共样式结束*/
原创粉丝点击