我正试图在HTML文档中嵌入一个PDF文件,但这似乎只能在Chrome浏览器中工作。其他浏览器似乎要么需要插件,要么需要用户点击链接,这不是我想要的。以下是我尝试过的方法:
<object data="pdfFiles/interfaces.pdf" type="application/pdf">
<embed src=" pdfFiles/interfaces.pdf" type="application/pdf"> </embed>
alt :<a href="pdfFiles/interfaces.pdf">
</object>
<a href="pdfFiles/interfaces.pdf">Relais D2D</a>
。 - scunliffe