在内容div的最后和页脚之前需要删除太多空白吗? [英] too much white space in the last of content div and before footer need that to be removed?
本文介绍了在内容div的最后和页脚之前需要删除太多空白吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
希望大家一切都好..!
Hope you all will be fine..!
我是一个初学者,所以我刚刚开始将PSD转换为HTML,所以不好的HTML/CSS编程也是如此,所以这里我面临一个问题,在内容的最后和页脚之前有很多空白要删除.
I just started converting a PSD to HTML as i am beginner learner so did bad HTML/CSS programming,so here i am facing an issue now,that has alot of white space right in the last of content and before footer which need to be removed.
这是Index.html页面的链接: http://www.webngraphicssolutions.com /urgent_psd/index.html
here is the link to the Index.html page : http://www.webngraphicssolutions.com/urgent_psd/index.html
人们在等你答复.
推荐答案
您的CSS
#footer {
background-image: url(../images/footer_back.png);
background-repeat: no-repeat;
background-position: bottom;
overflow: hidden;
position: relative;
top: 1250px; // this is causing the white space..!!
padding: 150px 150px 150px 150px;
}
删除此top: 1250px;
并为页脚添加bottom:0;
尝试
#footer {
background-image: url(../images/footer_back.png);
background-repeat: no-repeat;
background-position: bottom;
overflow: hidden;
bottom:0;
padding: 150px 150px 150px 150px;
}
或者您也可以给top:50px
//一个合理的空间
or you could also give top:50px
// a reasonable space
尝试
#footer {
background-image: url(../images/footer_back.png);
background-repeat: no-repeat;
background-position: bottom;
overflow: hidden;
position: relative;
top: 50px;
padding: 150px 150px 150px 150px;
}
这篇关于在内容div的最后和页脚之前需要删除太多空白吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文