首页 > 解决方案 > Timepicker 不在 IE 中工作,但在其他所有东西上

问题描述

在 IE 中运行时遇到问题,我发现它在所有其他浏览器中都能完美运行。我知道最简单的解决方案是使用不同的浏览器,但这需要专门在 IE 中运行。任何帮助,将不胜感激。

<div class="col-sm-4" style="text-align: left">
                    <asp:TextBox ID="txtTimeOn" Enabled="true" runat="server" Visible="False"></asp:TextBox>
                    <label for="lblTimeOn">Time On:</label>
                    <input type="time" class="form-control" id="TimeOn" name="TimeOn" />
                </div>
                <div class="col-sm-4" style="text-align: left">
                    <asp:TextBox ID="txtTimeOff" Enabled="true" runat="server" Visible="False"></asp:TextBox>
                    <label for="lblTimeOff">Time Off:</label>
                    <input type="time" class="form-control" id="TimeOff" name="TimeOff" />
                </div>

标签: javascript

解决方案


你好,欢迎来到 Stackoverflow

根据 MDN 的文档,IE 不支持使用type="time". 来自 MDN /来自 CanIUse

浏览器兼容性列表


推荐阅读