2012-01-17 32 views

回答

0

您可以添加輸入type =「number」,然後pattern =「[0-9] *」以調出數字鍵盤。

+0

這不顯示 「」在鍵盤上輸入十進制數字 – Mirko 2014-05-21 16:08:24

1

See the documentation here

我想你可以使用

<input type="text" pattern="[0-9]*"></input> 

<input type="tel"></input> 

希望它可以幫助

+0

這不顯示「。」在鍵盤上輸入十進制數字 – Mirko 2014-05-21 16:08:50

+0

http://stackoverflow.com/questions/9204762/showing-an-input-that-only-allows-numbers-and-the-decimal-point – 2014-05-21 23:05:10