我已经创建了简单的网页,使用html5和css,css3。html5中的宽度样式问题
我创造粘页脚,这里是代码:
#footer {
position:absolute;
bottom:0;
color:#000;
width:100%;
height:60px; /* Height of the footer */
background:#fff;
}
,敷和标题样式:
#wrap
{
width:100%;
}
header
{
width:960px;
margin:0 auto;
}
从我上面的代码
,我的网页看起来像这样:http://s2.postimg.org/6t4qokwxl/Untitled_1_copy.png
我需要显示页脚为全角,但是当我从页眉中删除margin:0 auto;
时,页脚显示完全全角,并且没有正确显示页眉。
我需要显示除footer宽度为960px;页脚需要全角。
我挣扎着,谁能帮助我?提前致谢。
请附上您的HTML以及。如果可能,请在JSFiddle示例中重现该问题。 – TylerH 2014-10-20 06:44:00