开发者

HTML select with size > 1 in iPad

开发者 https://www.devze.com 2023-03-26 11:42 出处:网络
I have a site done to work in windows browsers. There are select boxes with a size atribute > 1. I run it in iPad and at start if no element selected select box showed empty. After clicking on it I c

I have a site done to work in windows browsers. There are select boxes with a size atribute > 1.

I run it in iPad and at start if no element selected select box showed empty. After clicking on it I can't select first item of the list. The Safari perhaps thinks that first item already selected and does nothing.

I have fixed this by javascript - after DOM ready I check userAgent and for iPad set size = 1. And at star开发者_StackOverflow中文版t first element already selected. But I don't need this.

Are any solution for this issue without javascript?

Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消