简体   繁体   English

iPad Safari上的下拉菜单问题

[英]Dropdown issue on iPad Safari

I have a dropdown list coded as follows; 我有一个下拉列表,编码如下:

<select name="xyz" class="selectbox" size="6"/>

Now as it says size=6 , that means it should display 6 options at a time. 现在,它说size = 6,这意味着它应该一次显示6个选项。 While this works fine in desktop browsers like IE, FF, the same does not work correctly on the iPad Safari.. 尽管在IE,FF等桌面浏览器中可以正常工作,但在iPad Safari上无法正常使用。

ie it shows it like a normal dropdown with 1 option visible at a time. 即它显示它就像一个正常的下拉菜单,一次显示1个选项。

Is there any fix to correct this issue on iPad? iPad上有解决此问题的修复程序吗?

You could try setting the 'multiple' attribute to true. 您可以尝试将'multiple'属性设置为true。 It will still not look the way you want it to look, but at least you will be able to select multiple items from the list. 它仍然不会看起来像您想要的样子,但是至少您将能够从列表中选择多个项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM