Content going under footer in Google Chrome and not FF

放肆的年华 提交于 2019-12-11 13:56:05

问题


If you take a look at the site in Firefox, everything will appear normal and the footer will stick to the bottom. However in Google Chrome, the footer sticks to the bottom, but the content goes under it if the window is not large enough.

I've spent the last three hours trying to fix it, I would really appreciate it if anybody knows the solution.

Here is the site: http://rawonline.com.au/clarkwindows/service.html


回答1:


Change your #footerWrap CSS to this:

#footerWrap {
    height: 277px;
    background: url(images/footerbg.png) left 277px repeat-x; /* AMEND THIS */
    width: 100%;
    float: left;
    padding-top: 277px; /* ADD THIS */
}

*EDIT*

Ok, in that case, what you need to do is
Move your <div class="push"> inside the <div id="wrapper">
and change .push to:

.push {
    height: 277px;
    clear: both;
}

Also, add position: relative to wrapper and footerWrap



来源:https://stackoverflow.com/questions/8309677/content-going-under-footer-in-google-chrome-and-not-ff

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