简体   繁体   中英

How to achieve IOS number keypad i.e similar to number keypad in android?

When I change the type as number . I was seeing a keypad which is not similar to android/windows devices.

In IOS is looking like below

在 Ios 我是这样观察的。

Where as in Android and other devices it looks like below.

. 在 Android 和其他设备中的位置

I was checking the blogs and previous stack flow questions. In many of the place's guys are mentioning to change type="tel" . which is similar to type="tel" in android device. But no where i got the possibility of getting keypad similar to android through Javascript/container changes in IOS.

This will give it to you:

<input type="number" pattern="\d*">

The problem with <input type="tel"> is it will also give you the * and # characters

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM