Webview代码无法用于我的Chrome应用

时间:2015-06-20 18:52:20

标签: javascript html webview google-chrome-app

所以我一直试图在我的应用中加载谷歌:

<!doctype html>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title>Webview</title>
    <meta name="description" content="">
    <meta name="author" content="Kitanga Nday">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/styles.css">
    <link rel="icon" type="image/png" sizes="16x16" href="favicon.png">
    <script src="kng.js"></script>
</head>
<body>
    <div id="kontainer"> <!-- Kontainer div -->
        <webview src="https://www.google.com/" width="640" height="480"></webview>
    </div>
    </div>
</body>

然后,我尝试使用iframe标记在页面上沙盒并在主html文件中运行它。

1 个答案:

答案 0 :(得分:0)

也许您错过了使用<webview>需要"webview" permission in the manifest的事实。