【问题标题】:Node-Webkit Iframe Not Displaying Internet BrowserNode-Webkit iframe 不显示 Internet 浏览器
【发布时间】:2014-06-20 18:48:52
【问题描述】:

也许我安装了不正确的东西或什么东西,但无论我尝试什么,我都无法在 iframe 中显示浏览器窗口。我将找到的示例中的代码复制粘贴到主页中:

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Test</title>
  </head>
  <body>
    <b>You should be able to see Google in an iframe below:</b>
    <iframe src="https://www.google.com" style="width: 80%;" nwdisable nwfaketop>
    </iframe>
  </body>
</html>

我还复制粘贴了 JSON 文件:

{
  "name": "test",
  "main": "main.html",
  "window": {
    "width": 600,
    "height": 400,
    "position": "center",
    "title": "Test",
    "resizable": true
  }
}

当我使用“C:\node-webkit\nw.exe”运行代码时。从命令行,我得到“你应该能够在下面的 iframe 中看到 Google:”,下面有一个空框。

另外,我在 Windows 上。我将不胜感激。

编辑:我能够运行所有示例应用程序here

【问题讨论】:

    标签: node.js iframe node-webkit


    【解决方案1】:

    问题是我试图在 HTTP 窗口中加载 HTTPS 站点。

    【讨论】:

      猜你喜欢
      • 2015-06-08
      • 2011-03-04
      • 2011-09-16
      • 2016-02-19
      • 1970-01-01
      • 1970-01-01
      • 2010-10-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多