无法激活元素<input type="date" />。
当我点击模拟器上的字段时,它显示的不是进入日期,而是android键盘。
发布于 2012-10-30 19:04:58
看看这个:http://www.quirksmode.org/html5/inputs_mobile.html
它告诉您哪些html5输入类型和属性在每个浏览器上都有效。看起来datepicker不能在大多数安卓设备上运行,因此它会显示为一个简单的文本输入。
发布于 2012-11-17 02:07:03
您可以使用Trigger.io's UI module将原生的Android日期/时间选择器与常规的HTML5输入一起使用。这样做确实需要使用整体框架(所以不会像普通的移动网页那样工作)。
你可以在这篇博客文章中看到前后的屏幕截图:http://trigger.io/cross-platform-application-development-blog/2012/11/16/new-feature-roundup-native-date-time-picker-analytics-with-flurry-android-events/
发布于 2013-08-07 11:23:28
看看这里:How to make the HTML5 input type 'date' trigger the native datepicker on Android?
mobiscroll.com提供了一个很好的polyfill。
https://stackoverflow.com/questions/13137567
复制相似问题