输入框时间在html ie [英] Input box time in html ie
问题描述
我想要一个时间输入框(使箭头增加/减少时间)。以下代码适用于chrome / mozilla,但在Internet Explorer中无效:
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"/>
如何解决?
推荐答案
许多元素类型都是HTML5中新增的元素,因此不受旧版浏览器的支持。您可以对非HTML5浏览器使用 polyfill 。
Many element types are new in HTML5 thus not supported by older browsers. You could use a polyfill for non HTML5 browsers.
在这种情况下,像:
http://dl.dropbox.com/u/598365/html5forms/html5forms.html
目标是允许作者使用大多数HTML5控件类型和
属性,即使在尚未支持所有这些属性的浏览器中new
HTML5功能。这些功能中的一些仅在
最新版本的Opera中实现,部分在基于Webkit的浏览器中实现。要
实现这一点,我们需要能够识别和处理这些新类型的正确的
验证,并且能够设置:
The objective is to allow authors to use most HTML5 control types and attributes even in browsers which do not yet support all these new HTML5 features. Some of these features are only implemented in the latest version of Opera and partially in Webkit based browsers. To achieve this we need the ability to recognize and handle correct validation for these new types and be able to set:
这篇关于输入框时间在html ie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!