简单的div我需要一个简单的div
与header,footer and body content.
与页眉,页脚和身体
的header
和footer
需求是fixed
和div的height
应250px
或最大500px
及其width
是500px
而我body content
应该是fluid
,以便它应该扩展内容。
Header
和footer
需要是40px.
我需要标题之后及以上页脚的水平线。
我已经完成了它,但我无法设置其页脚,因为我正在与对齐方式打成一片。
任何人都可以建议我用这个:
CSS:
mainbody
{
position:absolute;
Left:35%;
top:20%;
display:none;
height:250px;
width:500px;
margin-top: 0;
border:1px solid #fff;
box-shadow:0px 2px 7px #292929;
-moz-box-shadow: 0px 2px 7px #292929;
-webkit-box-shadow: 0px 2px 7px #292929;
border-radius:10px;
-moz-border-radius:10px;
-webkit-border-radius:10px;
background-color:#ffffff;
z-index:50;
}
.header
{
height: 30px;
border-bottom: 1px solid #EEE;
background-color: #ffffff;
height: 40px;
width: 490px;
padding: 5px;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.footer
{
width:500px;
margin-bottom: 0;
margin-top: 37px;
margin-left:-5px;
background-color: whiteSmoke;
border-top: 1px solid #DDD;
-webkit-border-bottom-right-radius:5px;
-webkit-border-bottom-left-radius:5px;
-moz-border-radius-bottomright:5px;
-moz-border-radius-bottomleft:5px;
border-bottom-right-radius:5px;
border-bottom-left-radius:5px;
}
这就是我需要:
@全部感谢您的支持人员,您让我以差异化的方式思考不同的每一个人。 – coder 2012-02-19 17:22:43