【问题标题】:Object tag in Internet Explorer with PDF insideInternet Explorer 中的对象标记,其中包含 PDF
【发布时间】:2013-11-18 10:46:59
【问题描述】:

我有这个简单的 html:

<!DOCTYPE html>
<html>
<head>
</head>
<body>
    <div style="position:absolute;">
        <div style="position:absolute; display:block; z-index:999; left:450px;">stuff</div>
    </div>
    <object data='C:/mypdf.pdf' type="application/pdf" width="500px" heigth="500px" style="z-index:1;">     
        <p>stuff</p>
        <p>stuff</p>
    </object> 

</body>
</html>

在 Internet Explorer 中我无法在 pdf 前面制作 div,在其他浏览器中效果很好,

有什么建议吗?

[编辑]

这是JsFiddle

谢谢

【问题讨论】:

    标签: html internet-explorer object pdf z-index


    【解决方案1】:

    <!DOCTYPE html>
    <html>
    
    <head>
    </head>
    
    <body>
      <div style="position:absolute;">
        <div style="position:absolute; display:block; z-index:999; left:450px;">stuff</div>
      </div>
      <object type="application/pdf" width="500px" heigth="500px" style="z-index:1;">
        <param name="src" value="http://www.who.int/medicines/publications/essentialmedicines/18th_EML_Final_web_8Jul13.pdf" />
      </object>
    
    </body>
    
    </html>

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-06-26
      • 2011-07-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多