在Android浏览器中选择字段时怪异的行为 [英] Weird behaviour in Android browser when selecting fields

查看:149
本文介绍了在Android浏览器中选择字段时怪异的行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android的WebKit浏览器(在2.2,2.3和3.0测试)似乎表现得怪异的方式是把一个在另一个之上模态元素时。在这里这个例子

The Android Webkit browser (tested on 2.2, 2.3, and 3.0) seems to behave in weird ways when modal elements are put one above the other. In this example here

...我显示 jQuery UI的日期选择器用z-index 200,灰色覆盖DIV跨越整个文档的高度和宽度用z-index 199和后面所有的常规形式。

... I'm displaying a jQuery UI date picker with z-index 200, a gray overlay div spanning the whole document height and width with z-index 199 and behind all that is the regular form.

在上面的例子中,我点击了下拉控制全年那里说如果不选择的下拉2011年,重点继续下面的灰色覆盖textarea元素的方式。

In the example above, I have clicked on the dropdown control for the year where it says 2011. Instead of selecting that dropdown, the focus went on the textarea element way below the gray overlay.

注意:这不会发生与桌面火狐浏览器,或与iPhone WebKit浏览器

NOTE: This doesn't happen with a desktop Firefox browser, or with the iPhone Webkit browser.

任何想法有什么错?或者,如何解决这个问题?我想避免修改的形式(如禁用所有元素,同时叠加显示)

Any idea what's wrong?? Or how to work around this issue? I want to avoid modifying the form (e.g. disabling all elements, while the overlay displays)...

推荐答案

看来,这实际上是Android的一个已知的问题。它应该是固定的,但我无法证实这一点。 在任何情况下,主演的这个问题将是很好,非常感谢!

It seems that this is actually a known issue in Android. It's supposed to be fixed, but I can't confirm that. In any case, starring this issue would be nice, thanks!

  • http://code.google.com/p/android/issues/detail?id=6721
  • http://code.google.com/p/android/issues/detail?id=26255

这篇关于在Android浏览器中选择字段时怪异的行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆