gpt4 book ai didi

javascript - 如何在 android/三星手机的 html 文本输入字段中停止自动大写?

转载 作者:技术小花猫 更新时间:2023-10-29 12:24:44 27 4
gpt4 key购买 nike

我试图在三星安卓手机上的 html 文本输入字段中获取所有小写字母。

谁能提出其他建议来尝试停止文本字段中第一个字母的自动大写?

我已经尝试了以下方法,但没有任何效果。

  • CSS

    .my_username{text-transform:lowercase;}

    input[type=text] {text-transform:lowercase;}
  • JS

    my_username.setAttribute("autocapitalize","off");

    in submitonenter(my_username.value.toLowerCase();)
  • HTML

    input autocapitalize="off" type="text" class="my_username" name="username" size="19" value="" maxlength="19" onkeypress="submitonenter(event,this)"

最佳答案

你需要在你的标记中说 autocapitalize="off"

例子

<input type="text" autocorrect="off" autocapitalize="off"/>

Click here了解更多详情。

关于javascript - 如何在 android/三星手机的 html 文本输入字段中停止自动大写?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13284323/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com