Chen Log

陳洛格

在iPhone的Safari顯示 “數字鍵盤 NumPad”

leave a comment »

Screen Shot 2012 07 14 at 18 54 06

 

在iPhone的Safari下:

<input type=”number”>

只是切到符號鍵盤,

上面有小號數字;

 

<input type=”tel”>

顯示的是大號數字鍵盤,

包含少量特殊符。

 

<input pattern=”\d*”>

顯示純粹的數字鍵盤,

模式也可以使用

<input pattern=”[0-9]*”>

 

 

Advertisements

Written by chenagw

2012/07/14 at 18:57

Posted in Uncategorized

Tagged with , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: