【问题标题】:Webview tag not working for my chrome appWebview 标签不适用于我的 chrome 应用
【发布时间】:2015-06-20 18:52:19
【问题描述】:

所以我一直在尝试使用这个在我的应用中加载谷歌:

<!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 文件中运行它,但仍然没有。

【问题讨论】:

    标签: javascript html webview google-chrome-app


    【解决方案1】:

    也许您错过了使用&lt;webview&gt; 需要"webview" permission in the manifest 的事实。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-23
      • 2011-04-27
      • 1970-01-01
      • 2015-08-19
      • 2014-12-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多