@Ralf_Stockmann 和 @Alon1 你们试过……
另外,在我的 Discourse 上,我使用了这种方法……
嵌入来自 Google Drive 的 PDF
(这是我首选的方法,因为 iFrame 中的 PDF 是响应式的 - 其他方法大多无法实现跨浏览器响应式。)
- 分享
- 复制分享链接
- 在新标签页中打开分享链接
- 点击右上角的三个垂直点
- 选择“嵌入项目”
- 复制显示的 iFrame 代码
- 粘贴到 Discourse 编辑器中
此处嵌入了一个来自 Google Drive 的测试 PDF,你可以 \u003c\u003c在此处下载\u003e\u003e
\u003ciframe src=“https://drive.google.com/file/d/1KQ-jn7R0NmZxw955QaPu3lvLFh5zpnDe/preview” width=“640” height=“480” allow=“autoplay”\u003e\u003c/iframe\u003e
\u003ciframe src="https://drive.google.com/file/d/1KQ-jn7R0NmZxw955QaPu3lvLFh5zpnDe/preview" width="640" height="480" allow="autoplay"\u003e\u003c/iframe\u003e
看起来是这样的……(你也可以在我的网站 此处 实时尝试)
