IFRAME是不工作的Android浏览器inbuild如何解决问题? [英] iframe is not working android inbuild browser how can resolve issue?
问题描述
我是一个跨平台的移动应用程序中使用的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标签不工作的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
和宽度
和高度
,看看是否出现了。
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屋!