我目前正在开发一个网站,一切进展顺利,直到 css 现在认为页面底部,即使我已经使用定位图像
position:absolute;
bottom:0px;
实际上距离底部大约 100 像素!我无法弄清楚,我唯一的答案可能是因为我如何在布局中重复事物。该网站可以在 SemaphoreDesign 找到。样式表的粘贴箱是here对于 HTML,请转到 here我实在不明白为什么 header 和 endside 不在页面底部以及为什么有滚动条。谢谢
最佳答案
你可以为这2个做固定位置
#endside {
width:100%;
float:left;
height:112px;
position:fixed;
bottom:0px;
overflow:hidden;
background-image:url(images/main_09.png);
z-index-2;
}
#footer {
width:915px;
margin: 0 auto;
background-image:url(images/main_10.png);
height:112px;
position:fixed;
bottom:0px;
z-index:11;
}
关于CSS 错误让我抓狂,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9492856/