在页脚需要删除后,我的索引页面有很多空格?

时间:2014-03-08 08:26:42

标签: html footer

刚开始制作PSD到HTML并且到了这个阶段,我完成了所有的事情,因为我知道这是一个开始,所以我做了糟糕的CSS编程,但慢慢地会慢慢学会如果你的人帮助我所以我会得到success.so这里是索引文件请检查为什么页脚后面有很多空格,以及如何删除那个空格?

索引文件:http://www.webngraphicssolutions.com/urgent_psd/index.html

等待你的回复..

2 个答案:

答案 0 :(得分:0)

#footer {
    background-image:url(../images/footer_back.png);
    background-repeat:no-repeat;
    height:100px;
    background-position:center top;
    overflow:hidden;
    position:relative;
    top:1250px;
    padding: 100px;
    margin:0;
}

正如我在您的代码中看到的那样,您在所有四个方面都使用了大量填充(因此,包括底部)。试试这个:填充:100px 100px 100px 0;或许:背景位置:中心底部;

答案 1 :(得分:0)

#footer {
background-image: url(../images/footer_back.png);
background-repeat: no-repeat;
background-position: bottom;
overflow: hidden;
position: relative;
top: 1250px;// Remove this
padding: 150px 150px 150px 150px;

在你的style.css文件中删除顶部:#footer

内的1250px

即使你不删除它,你也可以根据需要改变值,可能小于100px