替代datetime-local? [英] Alternative to datetime-local?
本文介绍了替代datetime-local?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有其他选择,因为Firefox和Internet Explorer不支持它...
Is there a alternative for that because Firefox and Internet Explorer are not supporting it...
示例:
<form>
<input type="datetime-local">
</form>
谢谢!
推荐答案
您可以一起使用<input type="date"> <input type="time">
.我个人认为这就是为什么删除datetime-local的原因.也有一些很好的polyfill,例如: http://afarkas.github.io /webshim/demos/index.html
You can use <input type="date"> <input type="time">
together. Personally I think this is why datetime-local was removed. There are some great polyfills as well, like this one: http://afarkas.github.io/webshim/demos/index.html
这篇关于替代datetime-local?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文