Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 背景图像未出现在IE8中_Css_Image_Internet Explorer 8_Background - Fatal编程技术网

Css 背景图像未出现在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>

我有一个背景图像,我正试图用它作为一个标志。在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>
你的


需要页面的
行高

添加项
标题
,下一步:

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