我想在网页中显示PDF文件的内容。我不希望浏览器在用户点击时下载。
最佳答案
使用 Google PDF 查看器:
<iframe src="http://docs.google.com/gview?url=URL_TO_YOUR_PDF&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>
关于html - 在网页中显示 PDF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2795765/