English 中文(简体)
4类类和4类的表单元素的错误重点领域(ICS)WebView
原标题:Wrong focus area of form elements in android 4 (ICS) WebView

I have a form in a Right To Left html page and I have a WebView that shows it. Html input fields of my page can t get focus when I tap exactly on them but when I try tapping somewhere beside of correct area, it becomes focused. My issue occurs just when the phone is in portrait mode, while I don t face it in landscape mode.

Here are screenshots of aforementioned issue:
portrait mode
landscape mode
Any help will be appreciated.

最佳回答

The problem caused by adding dir attribute with rtl value to html or body tag.
Your html or body should not have this:

dir="rtl"
问题回答

根据W3C标准,http://www.w3.org/TR/html401/struct/dirlang.html dir属性可以添加到 html 元素中, 所以我不确定是否包含此属性 。

要设置整个文档的基本文本方向,请在 HTML 元素上设置 dir 属性。

我也看到一些奇怪的问题 与RTL行为 与 Android浏览器(在桌面上运作良好) 。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签