css+div定位问题

来源:百度知道 编辑:UC知道 时间:2024/05/17 20:29:46
/* CSS Document */

body{
/*背景图片*/
padding-top:0px;
margin:0px auto;

}
#home{
width:900px;
margin:0px auto;
height:1100px;
border-top-style: inset;
border-right-style: inset;
border-bottom-style: inset;
border-left-style: inset;
border-top-color: #666666;
border-right-color: #666666;
border-bottom-color: #666666;
border-left-color: #666666;
}
#home #top{
margin-top:0px;
margin-bottom:10px;
margin-left:auto;
margin-right:auto;
width:900px;
height:200px;
border-bottom:#CCCCCC solid 1px;
}
#home #top #top0{
width:350px;
float:left;
height:40px;
margin-left:10px;
line-height: 40px;
}
#home #top #top0 p{
font-family: Georgia, "Times New Roman", Times, serif, "方正姚体";
font-weight: bold;
color: #999999;
font-size: 18px;
}
#home

/* CSS Document */

body{background-color:#2a3a00;
margin:0px;
padding:0px;
text-align:center;
font-size:12px;
font-family:Arial, Helvetica, sans-serif;
}
#container{position:relative;
margin:1px auto 0px auto;
width:640px;
text-align:left;
background:#ffffff url(XX) repeat-y;/*修补container的背景问题*/
}

你定义它居中的版式