Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/87.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

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
Html IE8不显示一个图像_Html_Css_Internet Explorer_Internet Explorer 8 - Fatal编程技术网

Html IE8不显示一个图像

Html IE8不显示一个图像,html,css,internet-explorer,internet-explorer-8,Html,Css,Internet Explorer,Internet Explorer 8,这让我快发疯了。我在一个网站上工作,每隔一个浏览器就会显示这个图像,包括IE6、7和9。但IE8完全忽略了这一形象。有人知道出了什么问题吗?我把z指数调高了,但这似乎没什么帮助 HTML 我将此样式添加到内联,并可工作: <div id="container" style="position: relative !important;"> <!-- [...] --> <div id="building" style="position: absolute !imp

这让我快发疯了。我在一个网站上工作,每隔一个浏览器就会显示这个图像,包括IE6、7和9。但IE8完全忽略了这一形象。有人知道出了什么问题吗?我把z指数调高了,但这似乎没什么帮助

HTML


我将此样式添加到内联,并可工作:

<div id="container" style="position: relative !important;">
<!-- [...] -->
<div id="building" style="position: absolute !important; margin: 0px; width: 626px !important; float: none !important; height: 110px !important; right: 0px !important;">


一位同事帮我解决了这个问题。我必须将DIV的宽度和高度设置为与其中的图像大小相同。浏览器完全忽略了div。谢谢大家的帮助。

你有小提琴显示这个问题吗?z-index:10000;左边距:384px;神奇的数字。。。。请点击本站的链接!www.wmtr.com/newwebsite/en.index。html@Ben:我无法复制这个问题,从这里看来还可以。在你应用内联css之前,它没有显示建筑图像吗?问题不是图像,而是位置和隐藏不好的。啊,我看到你在内联中也包括了宽度和高度,谢谢@karacas的帮助
#building {
float: left;
position: absolute;
z-index: 10000;
margin-left: 384px;
}
<div id="container" style="position: relative !important;">
<!-- [...] -->
<div id="building" style="position: absolute !important; margin: 0px; width: 626px !important; float: none !important; height: 110px !important; right: 0px !important;">