css 如何居中 帮忙看看下面这个css顶部居左了如何让居中!帮个忙·下下!
@charset"gb2312";/*Common*/body,td,th{padding:0px;margin:0px;font-size:12px;font-fami...
@charset "gb2312";
/* Common */
body, td, th{padding:0px; margin:0px; font-size:12px; font-family:"宋体"; color:#000; line-height:21px; background:url(../Images/bj.gif) #fff center top repeat-y;}
img{border:none}
ul, li{padding:0px; margin:0px; list-style:none;}
font, h1, h2, h3, ,h4 ,h5, h6{padding:0px; margin:0px; font-size:12px; line-height:21px; color:#000;}
a{color:#000; text-decoration:none;}
a:hover{color:#c10000; text-decoration:none;}
.Input{border:1px solid #cccccc; height:18px; line-height:18px;}
.Red{color:#c10000;}
.Red:hover{color:#ff6600;}
.Gray{color:#7f7f7f;}
.Gray:hover{color:#c10000;}
.clearfix:after {clear:both; height:0; overflow:hidden; display:block; visibility:hidden; content:"."; }
.clearfix {*zoom:1}
.Head{width:1004px; background:url(../Images/Head_bj.gif) left top repeat-x;}
.Login{width:1004; margin:0 auto; height:28px; line-height:28px; text-align:right;}
/*banner*/
.banner{width:1004px; margin:0 auto; height:87px;}
.banner .search{
float:right;
width:316px;
padding-top:42px;
text-align:left;
font-size:16px;
font-weight: bold;
}
.banner .Logo{float:left;}
.Menu{width:997px; margin:0 auto; padding-left:7px; height:41px; line-height:41px; text-align:right; font-weight:bold; font-size:14px;}
.Menu a{float:left; color:#FFF; text-align:center; width:70px; margin-left:10px; margin-right:10px;}
.Menu a:hover{color:#840000; background:url(../Images/Menu_bj.gif) no-repeat}
.Menu a:hover, .Menu a.sel{color:#840000; background:url(../Images/Menu_bj.gif) no-repeat}
.Menu span{float:left; width:2px; height:41px; margin:0 10px 0 10px; background:url(../Images/Menu_line.gif) no-repeat}
这个头部
.Head{width:100%; background:url(../Images/Head_bj.gif) left top repeat-x;}
.Login{width:1004px; margin:0 auto; height:28px; line-height:28px; text-align:right;}
/*banner*/
.banner{width:1004px; margin:0 auto; height:87px;}
.banner .search{
float:right;
width:316px;
padding-top:42px;
text-align:left;
font-size:16px;
font-weight: bold;
}
.banner .Logo{float:left;} 展开
/* Common */
body, td, th{padding:0px; margin:0px; font-size:12px; font-family:"宋体"; color:#000; line-height:21px; background:url(../Images/bj.gif) #fff center top repeat-y;}
img{border:none}
ul, li{padding:0px; margin:0px; list-style:none;}
font, h1, h2, h3, ,h4 ,h5, h6{padding:0px; margin:0px; font-size:12px; line-height:21px; color:#000;}
a{color:#000; text-decoration:none;}
a:hover{color:#c10000; text-decoration:none;}
.Input{border:1px solid #cccccc; height:18px; line-height:18px;}
.Red{color:#c10000;}
.Red:hover{color:#ff6600;}
.Gray{color:#7f7f7f;}
.Gray:hover{color:#c10000;}
.clearfix:after {clear:both; height:0; overflow:hidden; display:block; visibility:hidden; content:"."; }
.clearfix {*zoom:1}
.Head{width:1004px; background:url(../Images/Head_bj.gif) left top repeat-x;}
.Login{width:1004; margin:0 auto; height:28px; line-height:28px; text-align:right;}
/*banner*/
.banner{width:1004px; margin:0 auto; height:87px;}
.banner .search{
float:right;
width:316px;
padding-top:42px;
text-align:left;
font-size:16px;
font-weight: bold;
}
.banner .Logo{float:left;}
.Menu{width:997px; margin:0 auto; padding-left:7px; height:41px; line-height:41px; text-align:right; font-weight:bold; font-size:14px;}
.Menu a{float:left; color:#FFF; text-align:center; width:70px; margin-left:10px; margin-right:10px;}
.Menu a:hover{color:#840000; background:url(../Images/Menu_bj.gif) no-repeat}
.Menu a:hover, .Menu a.sel{color:#840000; background:url(../Images/Menu_bj.gif) no-repeat}
.Menu span{float:left; width:2px; height:41px; margin:0 10px 0 10px; background:url(../Images/Menu_line.gif) no-repeat}
这个头部
.Head{width:100%; background:url(../Images/Head_bj.gif) left top repeat-x;}
.Login{width:1004px; margin:0 auto; height:28px; line-height:28px; text-align:right;}
/*banner*/
.banner{width:1004px; margin:0 auto; height:87px;}
.banner .search{
float:right;
width:316px;
padding-top:42px;
text-align:left;
font-size:16px;
font-weight: bold;
}
.banner .Logo{float:left;} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询