white space below footer and above on re sizing window

谁都会走 提交于 2019-12-04 06:15:49

问题


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%;
}

回答1:


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

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; 
}



回答2:


I saw a body margin of 8px in your site. Add this or remove existing.

body{
margin:0;
padding:0;
}

Error



来源:https://stackoverflow.com/questions/21670523/white-space-below-footer-and-above-on-re-sizing-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!