【发布时间】:2021-05-02 09:47:10
【问题描述】:
我正在尝试将 PDF 加载到 iFrame 中。 src 设置为从数据库接收到的 URL。
<div class="row">
<div class="col-md-8">
<iframe runat="server" src="{{quotation.quotationFile.url}}"
width="100%" height="500px"> </iframe>
</div>
</div>
我正在尝试使用从数据库接收到的src 加载 iFrame。但它没有显示:
This content can’t be shown in a frame
There is supposed to be some content here, but the publisher doesn’t allow it to be displayed in a frame. This is to help protect the security of any information you might enter into this site.
【问题讨论】:
-
我猜您不是包含 PDF 的页面的所有者。此页面禁止将其内容嵌入其他网站。