开发者

Div does not get over PDF in IE8 / IE9 but works on FF & Chrome

开发者 https://www.devze.com 2023-02-24 23:01 出处:网络
I want to get my DIV over a PDF. This example works fine with FF but does not work with IE 8 / 9. note: this is the same result whatever PDF pointed too.

I want to get my DIV over a PDF. This example works fine with FF but does not work with IE 8 / 9. note: this is the same result whatever PDF pointed too.

<html>
<head></head>
<body>
<div style="position:absolute;z-index:1000;background-color:pink;z-index:1000">
I'm over PDF
</div>
<iframe src="http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf" style="width:100%;height:100%;z-index:0">
</body>
</ht开发者_JAVA百科ml>


Found a solution here You basically need to insert and empty iframe below the div but overlaying the PDF and play with Z-index : pdf (1), background iframe (50), content div (100).

0

精彩评论

暂无评论...
验证码 换一张
取 消