Css 背景图像未出现在IE8中
我有一个背景图像,我正试图用它作为一个标志。在Chrome&FF中一切正常,但在IE8中没有显示。背景图像根本不加载。如何让它们在IE8中显示 代码如下:Css 背景图像未出现在IE8中,css,image,internet-explorer-8,background,Css,Image,Internet Explorer 8,Background,我有一个背景图像,我正试图用它作为一个标志。在Chrome&FF中一切正常,但在IE8中没有显示。背景图像根本不加载。如何让它们在IE8中显示 代码如下: <header> <h1 class="logo"> <a href="http://publix.newhaven.edu/hlee-test">Henry C. Lee Institute of Forensic Science</a> </h1>
<header>
<h1 class="logo">
<a href="http://publix.newhaven.edu/hlee-test">Henry C. Lee Institute of Forensic Science</a>
</h1>
</header>
你的
需要页面的
行高
添加项标题
,下一步:
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
js-在DOM中创建新的html5标记。像IE8这样的老浏览器不知道html5标签
给出适当的浮动属性。它正在影响它。您使用html5shiv.js吗?Belyash,谢谢!非常感谢。非常感谢你!这解决了我的问题!
header h1 a {
....
}
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
header, footer, section, nav, article {
display: block;
margin: 0;
padding: 0;
}