This is not a "mobile" website. It is regular HTML/CSS. Is there a way I can force mobile devices to popup with the numeric keyboard when they focus on my textboxes?
相关问题
- Ionic Spinner not showing up
- Error: Cannot access database on the main thread s
- Video Format that Works on Mobile Phones
- Is it possible to customize Flutter Webview error
- Overflow:hidden not working on mobile browser
相关文章
- is there a “rails” way to redirect if mobile brows
- Ascii check mark is always red in mobile
- how to tell if android user came from home screen
- Overlapping Text in CSS - How do I change it?
- Why do mobile browsers load my page completely zoo
- Some Android devices extremely slow when rendering
- Android browser scaling?
- BigCommerce Stencil — load component parts based o
Its called "-wap-input-format". You can use it in your css or in style element such as
See http://www.developershome.com/wap/wcss/wcss_tutorial.asp?page=inputExtension2
Edit: I didn't realize you wanted to pop-up numeric keyboard. I'm not sure if it is possible
Just updating this post based on new tech..
Works on most OS's aside from iOS.
So a newer version was introduced where you could simply use:
This forces a numbered keypad on any mobile device these days.
You can reference here for more info on this exact topic.
We've had the best luck with using a combination of
type="number"
andpattern="\d*"
. We've seen success on iOS and Android devices, although I don't have a list of OS versions to share here.HTML5 has a new input type "number" that tells mobile devices to bring up the numeric keypad:
<input type="number"/>
Read about it (and the other new input types) here: http://html5doctor.com/html5-forms-input-types/