Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如果jQuery mobile出现框架问题,框架正在重新加载_Javascript_Jquery_Jquery Mobile_Iframe_Cordova - Fatal编程技术网

Javascript 如果jQuery mobile出现框架问题,框架正在重新加载

Javascript 如果jQuery mobile出现框架问题,框架正在重新加载,javascript,jquery,jquery-mobile,iframe,cordova,Javascript,Jquery,Jquery Mobile,Iframe,Cordova,我正在使用jquerymobile和phonegap开发一个混合应用程序,在我的应用程序中,我正在加载一个包含iframe的页面。但真正发生的是,当我在android emulator中加载它时,页面正在加载,框架与页面重叠,就像第二次加载一样,当我单击“上一步”按钮并重新启动应用程序时,它会正常工作。。我已经看到了一些关于修改cordova.plist的解决方案,但它对我不起作用,有人能帮我吗?我正在使用cordova 2.4.0 给出下面的HTML,我得到了正确的输出,但是第一次帧是重叠的

我正在使用jquerymobile和phonegap开发一个混合应用程序,在我的应用程序中,我正在加载一个包含iframe的页面。但真正发生的是,当我在android emulator中加载它时,页面正在加载,框架与页面重叠,就像第二次加载一样,当我单击“上一步”按钮并重新启动应用程序时,它会正常工作。。我已经看到了一些关于修改cordova.plist的解决方案,但它对我不起作用,有人能帮我吗?我正在使用cordova 2.4.0

给出下面的HTML,我得到了正确的输出,但是第一次帧是重叠的

<!DOCTYPE html>
<html>
<head>
<title>My Account</title>
<meta charset="utf-8">
<meta name="viewport"
    content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">

<link rel="stylesheet" href="css/jquery.mobile-1.4.2.min.css">
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/jquery.mobile-1.4.2.min.js"></script>
<style>
#main{
    padding: 1em;
    position : absolute; 
    top : 0;  
    right : 0; 
    bottom : 0;  
    left : 0;     
}
</style> 
</head>
<body>
<div data-role="page" id="pageone" data-theme="a">

<!-- Header -->

<div data-role="header" data-position="fixed" align="center" data-theme="b"><h1>BANK NAME</h1>
<a href="home_page.html" data-role="button"  data-theme="b" rel="external" >Back</a></div>

<div data-role="main">

<div class="ui-field-contain" align="center">
<a href="atm_search_location.html" target="mapview" data-role="button" data-theme="a" data-inline="true">ATM</a>
<a href="branch_search_location.html" target="mapview" data-role="button" data-theme="a" data-inline="true">BRANCH</a>
<a href="atm_branch_near_map.html" target="mapview" data-role="button" data-theme="a"  data-inline="true">NEAR ME</a>
</div>
<div>
<iframe name="mapview" width="100%" height="950px" src="my_current_location.html"></iframe>
</div>
</div>
</div>


</body>
</html>

如果你能给我们看一部分关于这个问题的代码,那就容易多了。@Tamura:当然,请看编辑。。