中心任何人都可以添加这个代码,以使在中心如页眉和页脚。左右边距应该相同页眉和页脚在
.newheader
{
background:#000;
height:30px;
left:0;
position:fixed;
width:100%;
top:0;
}
.newfooter
{
background:#000;
bottom:0;
height:30px;
left:0;
position:fixed;
width:100%;
}
如果你的宽度是100%,它会一直延伸到屏幕上。 *有*没有余量。 – 2012-07-24 19:17:33
,如果您使用的固定宽度比尝试'margin:auto;' – 2012-07-24 19:18:09
技术上他的页眉和页脚居中。 – 2012-07-24 19:18:16