iframe不工作android inbuild浏览器如何解决问题? [英] iframe is not working android inbuild browser how can resolve issue?

查看:160
本文介绍了iframe不工作android inbuild浏览器如何解决问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个跨平台的移动应用程序使用phonegap(html,javascript)问题被选择的项目相关的图像不显示在iframe和此图像显示另一个页面请参见下面的代码

I am working on a cross platform mobile application using phonegap (html,javascript) problem is selected item related image not display in iframe and this image display another page please see below code

<html>
<head>
<script>
function onchangeevent(mySelect) 
{ 
PageIndex2=mySelect.selectedIndex; 
{ 
if  
( 
mySelect.options[PageIndex2].value != "none" 
) 
{ 
frames['iframe2'].location.href = mySelect.options[PageIndex2].value; 
} 

} 
} 
</script> 
</head> 
<body> 
<form name="form"> 
  <p><select NAME="selectimage" SIZE="1" onChange="onchangeevent(this.form.selectimage)"> 
    <option VALUE="none" SELECTED>Select a page and go</option> 
    <option VALUE="ic_launcher.png">one</option> 
     <option VALUE="icon.png">two</option> 
  </select> </p> 
  <p> 
    <iframe src="" name="iframe2" height="100%" width="100%">You need a Frames Capable browser to view this content.</iframe>
 </p> 

</form> 
</body> 
</html> 

iframe标签不工作android inbuild浏览器如何解决问题?请告诉任何替代标签支持所有浏览器。

iframe tag not working android inbuild browser how can resolve the issue ? please tell any alternative tags supported all browsers.

推荐答案

Android浏览器支持 iframe 。我怀疑它是可能导致问题的其他属性之一。我知道滚动属性可以导致 iframe 不出现。尝试更简单的iframe版本,只需要 href width height ,看看是否出现。

Android browser supports iframe. I suspect it's one of the other attributes that may be causing an issue. I know scroll attribute can cause the iframe to not appear. Try a simpler version of the iframe with just the href and a width and height and see if it appears.

这篇关于iframe不工作android inbuild浏览器如何解决问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆