jquery - jQuery mobile 停止在同一页面中使用 iFrame - Phonegap
问题描述
这是我的 Phonegap 代码:
<html>
<head>
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
<link rel="stylesheet" type="text/css" href="css/index.css">
<title>Hello World</title>
<style type="text/css">
#footer{
position: absolute;
bottom: 0;
width: 100%;
}
</style>
</head>
<body style="margin: 0px;">
<!--<h1>Apache Cordova</h1>
<p id="registration"></p>
<ul id="pushList"></ul>-->
<div data-role="page">
<div data-role="header">
<h1>Page Title</h1>
</div><!-- /header -->
<div role="main" class="ui-content">
<iframe src="https://geckoadv.netsons.org/" style=" margin:0px; padding: 0px; border: 0px;" >
</div><!-- /content -->
<div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /footer -->
</div><!-- /page -->
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
</body>
</html>
当我添加iFrame
页面内部时,jQuery Mobile 停止工作并且页脚没有显示。
如果我删除iFrame
一切正常。
有什么想法或建议吗?
解决方案
我没有关闭 iFrame 标签</iframe>
推荐阅读
- android - 如何使用 WebStorm 为 Ionic 应用程序运行 Android 模拟器
- node.js - 使用本地护照和护照 facebook/google 的正确方法
- java - 如何将我编写的类连接到 FXML 控制器类
- python - 如何使用 numpy 沿轴制作 Hadamard 产品?
- sql - SSRS 仪表板布局:将所有图形的高度设置为相同
- c++ - 打印一次出现的字符串数组的第一个元素
- javascript - 如何:Javascript 在没有路径的情况下单击获取文件名并将其插入新的图像链接?
- python - 如何从文件夹中批量运行文件,一次 5 个文件?
- java - 如何在 11 Java JDK 版本中解决这个 JavaFX 问题?
- erlang - 混合 ecto.create 时出现 argon2 elixir 编译问题