115S站长学院 TIY
编辑您的代码:
<!DOCTYPE html> <html> <body> <p> 根据浏览器支持:<br> 当您填写输入字段时会弹出日期选择器。 </p> <form action="http://zz.115s.com/demo/demo_form.asp"> 生日(日期和时间): <input type="datetime-local" name="bdaytime"> <input type="submit" value="Send"> </form> <p><b>注释:</b>Firefox 或者 Internet Explorer 不支持 type="datetime-local"。</p> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?72e1eb95f3722bd737488ab37f422304"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>
查看结果: