【发布时间】: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