【发布时间】:2015-02-15 01:05:09
【问题描述】:
这是我的代码,我想要的只是将 div 覆盖在 IE10 中的一个对象上。它在 Chrome 中运行良好,但在 IE10 中运行良好。现在,如果您在 IE10 中对此进行测试 - div 会在后台运行。
有什么诀窍?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Testing OBJECTS..</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<div id="something">
<!-- IE Object -->
<div style="z-index:0; position:absolute; background: #000">
<object width="800" height="480" classid="CLSID:7FD49E23-C8D7-4C4F-93A1-F7EACFA1EC53" className="" innerHTML=" ">
<PARAM NAME="_cx" VALUE="21167">
<PARAM NAME="_cy" VALUE="12700">
</object>
</div>
<!-- Annotations needs to move on top for IE -->
<div id="something-2" style="z-index:1; position:relative; background-color:#ddd;width:200px;height:200px;display:block;">
This div needs to be on the top
</div>
<div class="someotherclass" style="display: none;">
Something here..
</div>
<div id="something-3"></div>
</div>
</body>
</html>
【问题讨论】:
标签: javascript jquery css internet-explorer-10