Safari移动多线路<选择>也称为GWT多行列表框 [英] Safari Mobile Multi-Line <Select> aka GWT Multi-Line ListBox
问题描述
使用必须在iPad上运行的webapp(因此,Safari Mobile)。
Working on a webapp here that must run on the iPad (so, Safari Mobile).
我有这个代码在除iPad之外的任何地方都可以正常工作:
I have this code that works fine in just about anything except iPad:
<select class="gwt-ListBox" size="12" multiple="multiple">
<option value="Bleeding Eyelashes">Bleeding Eyelashes</option>
<option value="Smelly Pupils">Smelly Pupils</option>
<option value="Bushy Eyebrows">Bushy Eyebrows</option>
<option value="Green Vessels">Green Vessels</option>
<option value="Sucky Noses">Sucky Noses</option>
</select>
它应该是什么样子是一个12行的框和5个填充。它工作正常在FF,IE,Chrome,Safari Win。但是,当我在iPad上打开它,它只是一行!
What it's supposed to look like is a box with 12 lines ans 5 of them filled up. It works fine in FF, IE, Chrome, Safari Win. But, when I open it on iPad, it's just a single line!
用CSS设计样式不起作用。它只是使单行更大,如果我设置的高度。有没有办法使它的行为与正常的浏览器相同,或者我自己做一个自定义组件?
Styling it with CSS doesn't work. It just makes the single line bigger if I set the height. Is there a way to make it behave the same way as in normal browsers, or do I nave to make a custom component?
谢谢。
推荐答案
没有办法这样做。您必须实现自己的组件。
There is no way to do this. You have to implement your own component.
这篇关于Safari移动多线路<选择>也称为GWT多行列表框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!