【发布时间】:2017-10-20 18:18:16
【问题描述】:
我是使用 aspx 项目的新手,在前端我有这样的表格:
<table style="width: 450px" id="tabla1">
<tr>
<th style="text-align:left">
<asp:Label runat="server" ClientIDMode="Static" ID="label_fechaini" Text="Fecha de Apertura:" Width="50%"></asp:Label>
<br />
</th>
<th style="text-align:left">
<asp:Label runat="server" ClientIDMode="Static" ID="label_fechafin" Text="Fecha de Cierre:" Width="50%"></asp:Label>
<br />
</th>
</tr>
<tr>
<td>
<asp:TextBox type="date" ClientIDMode="Static" runat="server" ID="fecha_ini"></asp:TextBox>
</td>
<td>
<asp:TextBox type="date" ClientIDMode="Static" runat="server" ID="fecha_fin"></asp:TextBox>
</td>
</tr>
</table>
在 chrome 浏览器中,我可以看到日期选择器没有这样的问题:
问题是与其他浏览器的兼容性,例如 IE 不显示 datepicker。我搜索到 CanIuse web。并且 IE 不支持日期。我该怎么做才能解决这个问题?
IE图片:
【问题讨论】:
标签: asp.net datepicker