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

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

问题描述

我是一个跨平台的移动应用程序中使用的PhoneGap(HTML,JavaScript的)问题的工作被选定的项目相关的图像中的iframe不显示这个图像显示另一页,请参见下面的code

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标签不工作的Andr​​oid浏览器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 宽度高度,看看是否出现了。

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是不工作的Andr​​oid浏览器inbuild如何解决问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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