javascript - 有没有办法选择没有输入[类型]的手机键盘?

标签 javascript html mobile

如果输入是日期但实际上不是<input type="date" />,我想显示不同的键盘.

这可能吗?

最佳答案

答案是肯定的。

For email keyboard

<input type="email" name="email" />

enter image description here

-

For URL

<input type="url" name="url">

enter image description here

-

For telephone

<input type="tel" name="tel">

enter image description here

-

Numbers

<input type="number" name="number">

enter image description here

-

Datetime

<input type="date" name="date">

enter image description here

这些是迄今为止最常用的。 问候。

关于javascript - 有没有办法选择没有输入[类型]的手机键盘?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47877967/

相关文章:

javascript - 如何操作从 x 射线抓取器 (node.js) 检索到的默认值

javascript - 使用 GraphQL 查询从多语言模式获取本地化数据

javascript - jQuery 检测滚动条上的 div 位置

javascript - 将自定义 JS 和 CSS 应用于 iframe? (制作第 3 方移动网站)

javascript - 在 onclick 事件的上下文中, "this"是如何工作的? (JavaScript)

javascript - Facebook Messenger 网站插件 greeting_dialog_display 不工作

javascript - 通过 JavaScript 打开 url,重定向到 ?results=aaa 而不是 results?q=aaa

html - 本地背景图片不显示在 html 中

html - 什么输入字段类型会强制数字键盘移动键盘在聚焦时出现?

javascript - 弹出窗口未按需要在每个 session 中显示一次(如客户所述)