在调整窗口下面的页脚和上方的空白处 [英] white space below footer and above on re sizing window

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

问题描述

我在页脚的上方和下方留出空白,请检查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%;
}


推荐答案

在页面的主体上。

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

I see in the my style.txt you have added

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

这需要:

This needs to be:

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

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

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