Disable Android browser's input overlays?

后端 未结 8 1173
天涯浪人
天涯浪人 2020-12-02 17:17

I\'ve got a web page with some text inputs. The Android browser (at least on Android 2.3.4 which is all I\'ve got now) seems to overlay its own control over the input on the

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-02 17:28

    @czuendorf, May 13 at 13:53: Worked for me too (also Android 4.0).

    However... if you use an input with type="number" then the numeric keyboard does not pop-up anymore when you enter the field, but the regular keyboard is shown instead.

    If you remove -webkit-user-modify, then the right keyboard is shown again, but the input element is shown with a border while it is being edited. In my case the input overlay messed up the layout (moved some content down and right), but this does not happen anymore with this new css code.

提交回复
热议问题