Html HTTPS嵌入PDF

Html HTTPS嵌入PDF,html,pdf,iframe,https,Html,Pdf,Iframe,Https,我刚在我的网站上切换到HTTPS。我一直在通过iframe显示本地托管的PDF;iframe显示一个小的html文件,其中嵌入了PDF(作为对象)。但是,PDF不再显示。我可以导航到PDF&它显示得很好,但在加载html页面时不会显示。我可以做些什么来显示PDF iframe <iframe src="/updates/update.htm" width="100%" height="800px" marginheight="0" frameborder="0"></ifram

我刚在我的网站上切换到HTTPS。我一直在通过iframe显示本地托管的PDF;iframe显示一个小的html文件,其中嵌入了PDF(作为对象)。但是,PDF不再显示。我可以导航到PDF&它显示得很好,但在加载html页面时不会显示。我可以做些什么来显示PDF

iframe

<iframe src="/updates/update.htm" width="100%" height="800px"
marginheight="0" frameborder="0"></iframe>

这里是在黑暗中拍摄的,但是您确定
“/updates/update.htm”
是正确的路径吗?如果您的页面是
www.site.com/something/index.php
,并且您使用该路径,浏览器将查找
www.site.com/something/updates/update.htm
。也许你想要
www.site.com/updates/update.htm
。也许您需要一个相对路径,如
”。/updates/update.htm“

更新
试试
标记使用
scr=
<代码>使用了w3schools提供的
数据=

我仔细检查了一下,但似乎iframe不是问题的根源。我将URL从相对更改为静态,但PDF仍然无法显示。当我导航到iframe指向的页面时,我得到一个完全空白的页面,没有PDF。谢谢!出于某种原因
<html>
<header>
<link rel="stylesheet" href="custom-styles.css">
</style>
</header>

<body>
<object src="update.pdf"
type="application/pdf" width="100%" height="800px"><div id="show-text">
<p>It appears your web browser is not configured to display PDF files.</p>
<p><a href='update.pdf'>Click here to download the PDF file.</a></p>
</div>
</object>
</body>
</html>
#show-text {
display: block;
width: 100%;
height: 15%;
background: #D1D1D1;
}