gpt4 book ai didi

移动键盘上字母数字的html 5输入类型

转载 作者:太空狗 更新时间:2023-10-29 14:23:30 24 4
gpt4 key购买 nike

我们已经看到,当在移动键盘上选择输入类型“文本”时,它会出现文本,当在移动键盘上选择输入类型“数字”时,它只会出现数字。 And when input type password fields are selected then it comes up with both alphabet and numbers.当输入字段不是密码而是纯文本时,有没有办法在键盘上同时显示字母和数字??

Like this

希望您能收到我的询问。谢谢。

最佳答案

尝试:

<input type="password" pattern="[0-9]*" inputmode="numeric"> 

在 html5.1 之前通过 css:

 input[type=number] {
-webkit-text-security: disc;
}

关于移动键盘上字母数字的html 5输入类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37651443/

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