我正在制作一个虚构的网站来增加我的投资组合。问题地址中的网站是http://www.jn-design.co.uk/PJ .
问题是在 IE 8 中,页眉和页脚的背景颜色根本不显示。请在较新的浏览器中查看,您会看到问题!
如有任何帮助,我们将不胜感激。
最佳答案
IE8 不知道 <header>
和 <footer>
要素;他们是 HTML5。有很多方法可以解决这个问题,比如 http://modernizr.com/ , https://github.com/aFarkas/html5shiv ,或者像这样的 JavaScript block :
<script>
document.createElement('header');
document.createElement('footer');
</script>
关于html - IE8 CSS 背景颜色不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13326538/