iframe不工作android inbuild浏览器如何解决问题? [英] iframe is not working android inbuild browser how can resolve issue?
问题描述
我正在使用一个跨平台的移动应用程序使用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屋!