CSS公用样式

以下是我整理出的页面公用样式部分,在页面中调用这些代码,将为你减少很多麻烦。

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;border:none;}
body{font-size:12px;font-family:simsun,arial,helvetica,clean,sans-serif;background:#fff;color:#2b2b2b;}
address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}
ol,ul{list-style:none;}
select,input,img{vertical-align:middle;}
table{border-collapse:collapse;border-spacing:0;}
table,td,tr,th{font-size:12px;}
a{text-decoration:none;cursor:pointer;}
a:link{color:#004276;}
a:visited{color:#004276;}
a:hover{text-decoration:underline;color:#ba2636;}
fieldset,img{border:0;}
h1,h2,h3,h4,h5,h6{font-size:12px;font-weight:normal;}
q:before,q:after{content:'';}

.clear{clear:both;height:0;line-height:0;font-size:0;overflow:hidden;}
.blank10{clear:both;font-size:0;line-height:0;height:10px;}
.fb{font-weight:bold;}
.f12{font-size:12px;}
.f14{font-size:14px;}
.left{float:left;}
.right{float:right;}

原文地址:https://www.cnblogs.com/piuba/p/2106118.html