Div不会在IE中重叠iframe docx / pdf

时间:2014-12-31 16:13:56

标签: css internet-explorer iframe internet-explorer-8

如何让绿色div与IE中的DOCX或PDF IFrame重叠?使用z-indexes不起作用。

<html>
<head>
<style>
html, body { 
    width: 100%; 
    height: 100%; 
}
#container {
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    bottom: 25px;
    overflow: hidden;
    z-index: 1;
}
#overlap {
    background-color: green;
    position: absolute;
    height: 100%;
    width: 250px;
    overflow: hidden;
    right: 0;
    z-index: 10;
}
</style>
</head>
<body>
<div id="container">
    <iframe height="100%" width="100%" src="Test.docx"></iframe>    
</div>
<div id="overlap">
</div>
</body>
</html>

0 个答案:

没有答案