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
没有评论:
发表评论