页脚下方和调整大小窗口上方的空白区域 [英] white space below footer and above on re sizing window

查看:21
本文介绍了页脚下方和调整大小窗口上方的空白区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的页脚上方和下方出现空白,出现空白请检查下方的 css

I am getting white space above and below my footer ,there is a gap coming please check css is below

.footer {
background-image: url("../images/footer_image.png");
background-repeat: no-repeat;
background-size: 100% auto;
float: left;
height: auto;
width: 100%;
        }

.footer_bg {
background-image: url("../images/footer_bg.png");
background-repeat: no-repeat;
background-size: 101% auto;
height: 232px;
margin-top: 12.1%;
width: 100%;
}

推荐答案

页面正文有 8px 的边距.

There is a margin of 8px on the body of the page.

我在你添加的 style.txt 中看到了

I see in the my style.txt you have added

!important .body
{ margin:0 !important; 
 padding:0 !important; 
}

这必须是:

body
{ 
margin:0 !important; 
padding:0 !important; 
}

这篇关于页脚下方和调整大小窗口上方的空白区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆