html - Github 的 electron 不允许嵌入标签?

标签 html github electron

有什么限制吗?控制台没有显示任何错误。

我正在尝试使用基本的嵌入标签显示 pdf:

<embed src="./someFile.pdf" width="500" height="375" type='application/pdf'>

但是我的 Electron 申请显示:

enter image description here

最佳答案

Electron 在底层使用 Chromium,我不认为 Chromium 像 Chrome 一样与 PDF 查看器插件捆绑在一起。您需要使用适当的插件重新编译 Electron。您可能还想了解一些 Javascript PDF 查看器。

PDF.js似乎是一个可靠的选择,而且确实 another Electron user似乎是用它来解决你的确切问题:)

祝你好运!

关于html - Github 的 electron 不允许嵌入标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36042333/

相关文章:

javascript - How do I auto submit a dropdown when a value is selected other than the first value?

git push 因 git-credential-winstore 而失败

javascript - 添加 :focus to list items in dropdown menu

html - CSS 网格 - 将具有不同背景的 2 列设置为全屏宽度,并将它们的内容设置为联合最大宽度

javascript - 仅当影子 DOM 宿主元素是最后一个子元素时,如何选择它?

github - 使用 JIRA、GitHub 和 Jenkins 进行自动化变更日志

java - 如何在一个Eclipse项目中使用多个GitHub项目?

node.js - 无法安装 Electron “tunneling socket could not be established”

popup - ElectronJS-如何在后台弹出

node.js - 在树莓派 3 上安装 Electron js 时出现问题