CSS 错误让我抓狂

标签 css web

我目前正在开发一个网站,一切进展顺利,直到 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/

相关文章:

html - pos :relative & overflow-y:scroll 内的固定位置 div

web - Google Play上的免费试用版应用程序,我自己网站上的完整版本

javascript - 在边框不反射(reflect)的 css 中构建骨架屏幕

javascript - $(this).attr({类 : "activeTab"}); is not working because this is undefined

css - 努力理解 "collapsed margin"如何为 "parent and first/last child"工作

html - 使网站分辨率适应 iframe

css - 在 flex 容器中使用静态宽度是惯用的吗?

css - 特定轮播的样式 css 代码

css - 背景图像渐变不适用

php - default.ctp 中的 CakePHP 2 IE 条件 CSS