【问题标题】:How to display embedded PDF in Internet Explorer?如何在 Internet Explorer 中显示嵌入的 PDF?
【发布时间】:2019-08-27 04:57:21
【问题描述】:

我正在使用嵌入标签在我的浏览器上显示 pdf 文件。但是在IE中无法显示。如何在所有浏览器中显示它。谢谢

I using html, angular 4....
my code:
<div class="modal-content" style="overflow: hidden;">
    <embed type="application/pdf" [src]="item.url" frameborder="0"</embed>
</div>

【问题讨论】:

标签: html angular


【解决方案1】:

试试这个:

<embed [src]="item.url" type="application/pdf" width="100%" height="600px" />

你可以看看这个页面:https://www.codexworld.com/embed-pdf-document-file-in-html-web-page/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-09-28
    • 2011-12-10
    • 1970-01-01
    • 2017-03-03
    • 1970-01-01
    • 2015-08-01
    • 2014-10-04
    • 1970-01-01
    相关资源
    最近更新 更多