昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期五, 十月 05, 2012

ios6 number type input change

Now, on ios6, number type input doesn't trigger the numeric keypad. But using the pattern="[0-9]' attribute which is not working on previous ios will do the trick.

And the number type input cannot be controlled the by size attribute. If you have to use a size attribute, you can put a text type input under the number type input, set the size then get the width. Use the css width to control the number type input.

--
Feng

没有评论:

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.