初始化代码 init.css
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, td {
margin: 0;
padding: 0;
font-family: 'Microsoft YaHei', Arial;
}
ul,li {
list-style: none;
}
div {
display: block;
}
a {
text-decoration: none;
cursor: pointer;
}
img{
padding:0;
margin:0;
border:0;
}
公共代码:common.css
比如table 的样式 tr td的样式 都可以写在里面
body {
color:#666666;
background-color: #FFF;
font-family: "Microsoft YaHei", Arial;
font-size: 12px;
}
a:link,a:visited{color:#233f87; text-decoration:none;}
a:hover,a:active{color:#f00; text-decoration:none; }
h1,h2,h3,h4,h5,h6,p{ font-size:12px; font-weight:normal;}
.clearfix:after{
content:""; display:block; visibility:hidden; height:0; clear:both;
}
.clearfix{ *zoom:1; }
/*****************************/
#tblist{
border:1px solid #0094ff;
width:400px;
margin:20px auto;
border-collapse:collapse;
}
#tblist td,#tbList th{
border:1px solid #0094ff;
padding:2px;
}
#header {
width: 100%;
height: 78px;
background-color: #0066b5;
}
#header .header-con {
width: 1000px;
height: 78px;
margin: 0 auto;
position: relative;
padding:0 10px 0 10px;
background-color: #0066b5;
}
.footer{
width:100%;
height:auto;
background:url(http://thinkingreed.qiniudn.com/footerbj.png) repeat-x;
}
.footer .footer_content{
width:1000px;
background:url(http://thinkingreed.qiniudn.com/footerbj.png) repeat-x;
margin:0 auto;
padding:56px 10px 20px 10px;
}