如何在Android上以小写字母在输入字段中启动文本? [英] How to start text in input field with lowercase on Android?

查看:102
本文介绍了如何在Android上以小写字母在输入字段中启动文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有此网页,并且我有此文本区域

I have this webpage and I have this textarea

<textarea class="clipboard"></textarea>

我用于移动输入的

,当我键入某些内容时,它总是以大写字母开头(键盘处于大写字母形式的首字母),如何禁用此功能?

that I use to for mobile entry, and when I type something it always start for uppercase letter (the keyboard is in uppercase mode for first letter) how can I disable this feature?

当我添加left: -9999999px时,此问题已解决,但该页面不随输入滚动.

It's fix when I add left: -9999999px but then the page don't scroll with the input.

推荐答案

使用autocompleteautocapitalizeautocorrectspellcheck属性:

<textarea autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>

可在Chrome Dev(最新)和带有Google Keyboard和AOSP Keyboard的Android 5.1.1上运行.不适用于SwiftKey Neural(位于Alpha BTW中).

Works on Chrome Dev (latest) and Android 5.1.1 with Google Keyboard and AOSP Keyboard. Doesn't work with SwiftKey Neural (which is in Alpha BTW).

这篇关于如何在Android上以小写字母在输入字段中启动文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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