页脚放置在底部(img)和内容覆盖

sun*_*ock 4 css overlay image footer

我目前正在为一个网站开发一个新的设计,我的页脚(图像)有一些问题,并且内容要重叠.

对于页脚我在起点使用它:http://ryanfait.com/resources/footer-stick-to-bottom-of-page/

你可以在这里看到新设计:[ 编辑 ]网站不再存在,抱歉[/ edit ] http://nubi.dk/dev/(内容和设计目前正在发展,因此不再适合这个问题了 - 对不起

我想要的是让绿色部分(内容)在底部的图像上一直向下,但由于某种原因(我看不出原因)它落后了.

Roh*_*til 5

只需在layout.css中为#content添加"position:relative"即可.

#content {
    background-color: #00FF00;
    margin: 0 auto -130px 0;
    position: relative;
    width: 960px;
    z-index: 9999;
}
Run Code Online (Sandbox Code Playgroud)