Datepicker支持IE11和Firefox [英] Datepicker Support in IE11 and Firefox

查看:232
本文介绍了Datepicker支持IE11和Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个简单的HTML页面有什么问题,在FireFox 30.0和IE 11中没有显示日期选择器?

 <!DOCTYPE html> 
< html>
< head>
< title>无标题页< /标题>
< / head>
< body>
< form>
< label>日期栏位:< / label>< br />
< input type =datevalue =/>
< / form>
< / body>
< / html>


解决方案

Internet Explorer 11目前不支持< input type ='date'> ,尽管我们做了最近宣布正在进行这项工作。您可以通过 http://status.modern.ie 在线跟踪该进度。 b
$ b

Firefox目前还不支持该属性。 错误已于2012年打开,要求添加支持,但补丁没有如果你今天需要这个功能,我鼓励你使用 / datepicker /rel =noreferrer> jQuery的Datepicker


What is wrong with this simple HTML page that a date picker is not shown in FireFox 30.0 and IE 11?

<!DOCTYPE html>
<html>
    <head>
        <title>Untitled Page</title>
    </head>
    <body>
        <form>
            <label> Date field:</label><br />
            <input type="date" value="" />
        </form>
    </body>
</html>

解决方案

Internet Explorer 11 does not currently support <input type='date'>, though we did recently announce that work was underway to do so. You can track that progress online at http://status.modern.ie.

Firefox also does not appear to support the attribute presently. A bug was opened in 2012 requesting that support be added, but a patch has not yet landed.

If you need this functionality today, I would encourage you to use jQuery's Datepicker.

这篇关于Datepicker支持IE11和Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆