【发布时间】:2021-10-25 05:51:38
【问题描述】:
我正在使用 nw.js 呈现以下失败的 index.html 文件。检查元素会在 html 代码中显示 webview,但它不会打扰加载所需的 url。如何使用 NW.js 在 webview 元素中显示目标网站?
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
<style>
* {
font-family: sans-serif;
}
#webview {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1000;
display: inline-flex !important;
}
</style>
</head>
<body>
<webview id="webview" src="https://reactjs.org" partition="trusted" />
</body>
</html>
【问题讨论】:
标签: javascript html node-webkit