html 选择表单在phonegap 中无法正确显示
我正在尝试执行以下操作:
<select id="select_event" size="3">
<option value="optAVal1">optAText1</option>
<option value="optAVal2">optAText2</option>
<option value="optAVal3">optAText3</option>
</select>
我期望有一个选择表单,可以在其中看到所有选项值,但它充当下拉选择输入。我正在为Android应用程序做这个phonegap,所以我认为html也应该正常应用。有什么我不知道的限制吗?
I'm trying to do the following:
<select id="select_event" size="3">
<option value="optAVal1">optAText1</option>
<option value="optAVal2">optAText2</option>
<option value="optAVal3">optAText3</option>
</select>
and I expect a selection form where I can see all the option values, but instead it acts as a drop down selection input. I'm doing this phonegap for an android app so I would think that html should apply normally as well. Is there some kind of restriction I dont know of?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据个人经验,移动版本的浏览器不支持多行“选择”元素。相反,它们将其呈现为下拉菜单,并在您触摸/点击它时向用户显示选项。这可能是出于屏幕实际使用情况的考虑。
编辑:
如果您想在屏幕上查看所有选项,我建议您使用单选按钮选项。
On personal experience mobile versions of browsers do not support the multi-line "select" element. Instead they render it as a drop down and show the options to the user when you touch/tap it. It might be for a concern in real state usage of the screen.
Edit:
I will suggest using the radio button options instead if you want to see all options in the screen.