IE7 background color issue

谁都会走 提交于 2020-01-06 06:56:32

问题


Can anyone tell me why the background color 'black' isn't being picked up on the footer of this website in IE7?

http://james-gilmore.co.uk/index.html


回答1:


Probably the hasLayout bug - have a quick read of this:

http://www.satzansatz.de/cssd/onhavinglayout.html

Try adding height:1%




回答2:


The footer container has all floated children inside and therefore has no height. You need to clear the floats. There are many ways to do this, ranging from adding a clearfix class to the container or simply adding overflow:hidden

Also related - Background not showing behind floating divs




回答3:


It's probably worth just using the hex value #000000 instead of black, and see if that fixes the issue.

IE7 is pretty lame sometimes...



来源:https://stackoverflow.com/questions/13311826/ie7-background-color-issue

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