html ie中的输入框时间
我想要一个“时间”输入框(播种箭头以增加/减少时间)。以下代码在 chrome/mozilla 中有效,但在 Internet Explorer 中无效:
<label for="moduleStart">Hours from:</label>
<input type="time" name="moduleStart" class="dateFormat"/>
如何解决此问题?
I want to get a 'time' input box (that sows the arrows to increase/decrease time). The following code works in chrome/mozilla but it doesnt in internet explorer :
<label for="moduleStart">Hours from:</label>
<input type="time" name="moduleStart" class="dateFormat"/>
How can this be fixed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
许多元素类型是 HTML5 中的新元素,因此旧版浏览器不支持。您可以为非 HTML5 浏览器使用polyfill。
在这种情况下,例如:
http://dl.dropbox.com/u/598365 /html5forms/html5forms.html
Many element types are new in HTML5 thus not supported by older browsers. You could use a polyfill for non HTML5 browsers.
In this case one like:
http://dl.dropbox.com/u/598365/html5forms/html5forms.html
Internet Explorer 不支持此输入类型。
Internet explorer does not support this input type.
使用 HTML5 Modernizer 在不支持新输入的浏览器中支持 HTML5 新输入类型
来自文档:
Use HTML5 Modernizer to support HTML5 new input types in browsers that don't support new inputs
From Docs: