我已经很沮丧地尝试完成这个模拟网站,我一直在向你们寻求帮助。我目前有2个问题。首先,每当我打开Firebug来检查代码时,我的内容包装器背景(全是白色)都会不断增加。其次,我的内容包装器白色背景不包括Firefox中的页脚。在IE中,大多数情况下都包含它,但不是100%。切断一行文本。任何帮助将不胜感激。
html,body {height:100%;width:100%;}
html,body,#End {margin:0;padding:0;}
body {
text-align: center;
position:absolute;
}
Content_Wrap {
text-align: left;
width: 864px;
margin: 0 auto;
height:100%;
background-color:#FFF;
}
address{
font-family:'Advent Pro', sans-serif;
font-size:14px;
float:left;
color:#195a80;
height:100px;
width:auto;
}
copyright{
font-family:'Advent Pro', sans-serif;
font-size:14px;
float:right;
color:#195a80;
height:40px;
width:auto;
}
footer{
height:300px;
width:inherit;
float:left;
}
地址和版权位于页脚内部,而除end div之外的所有内容均位于内容包装中。当我检查Firebug时,它显示了包装中的页脚。
链接到我正在研究的模型。http://ninjasquared.com/LWM/
height:100%
从中取出,#Content_Wrap
然后用包装纸将其填满。添加overflow: hidden;
到#Content_Wrap
会为你做把戏!
只需用以下内容替换您的内容#Content_Wrap
:
CSS:
#Content_Wrap {
background-color: #FFFFFF;
margin: 0 auto;
overflow: hidden;
text-align: left;
width: 864px;
}
希望对您有帮助!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句