【发布时间】:2012-01-18 19:37:56
【问题描述】:
<div data-role="content">
<iframe src="http://drumbeat.pro/" frameborder="0" width="99%" height="100%" align="middle"></iframe>
<form id="loginForm">
<div data-role="fieldcontain" class="ui-hide-label">
<label for="username">Username:</label>
<input type="text" name="username" id="username" value="" placeholder="Username" />
</div>
<div data-role="fieldcontain" class="ui-hide-label">
<label for="password">Password:</label>
<input type="password" name="password" id="password" value="" placeholder="Password" />
</div>
<input type="submit" value="Login" id="submitButton">
</form>
</div>
我试图在我的 phonegap 应用程序中显示 iFrame,但我点击的每个链接都会进入浏览器,我该如何避免这种情况?请不要建议这个答案(http://denrobapps.com/2010/12/phonegap-and-iframes/),因为此处规定的 Phonegap 已过时
【问题讨论】:
标签: eclipse iframe jquery-mobile cordova mobile-application