I post divs and iframes using position relativeand absolute, which works fine on chrome but doesn't work in IE. I use Foxit Readerin IE to show pdf files.
Chrome (test 1231 23123 is displayed)

IE 11 (test 1231 23123 stands for iframe)

Below is my html:
<div class="document-previewer-container">
<div class="document-preview">
<div class="document-container">
<iframe id="pdf-container" ng-attr-src="{{vm.selectedDoc.pdfpath`}}"></iframe>
</div>
<div class="doc-overlay">
<p>Test 1231 23123</p>
</div>
</div>
<div class="documents-carousel-wrapper">
</div>
</div>
my .lessfile:
@import '../../styles/light-theme-definitions.less';
div.document-previewer-container {
//height: 400px;
//width: 300px;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
//padding: 5px 2px;
> div.document-preview {
height: 88%;
//width: 100%;
position: relative;
.document-container{
height: 100%;
width: 100%;
position: relative;
}
.doc-overlay {
width: 95%;
height: 95%;
position: absolute;
cursor: pointer;
top: 0;
p {
padding: 2px;
}
}
}
> div.documents-carousel-wrapper {
position: relative;
overflow: hidden;
height: 12%;
min-height: 63px;
img {
width: 100%;
height: 100%;
}
}
Update: 1
Work plunker. Please open it using IE or save it to ur local disk and open it in IE .
Update: 2
I implemented the logic, but still the div is not suitable for PDF iframe. Try clicking anywhere on the Plunker .
, , doc-overlay . , click ( ng-click) PDF. . . IE Chrome. checkout