如何在html中创建时间字段 [英] How to create a time field in html

查看:90
本文介绍了如何在html中创建时间字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,



我需要你的帮助:



我需要添加一个TIME输入在我的html代码的形式,



我使用此代码:



输入类型= timename =tretornoid =tretorno



with<> simbols,



但是当导航器向我显示页面时,输入只是一个简单的文本输入。



我需要一个特殊的时间输入我的html页面帮助我。



提前谢谢





Leonardo Ayala R.(厄瓜多尔)

Dears Friends,

I need yout help:

I need to add a TIME input in my form in my html code,

I am using this code:

input type="time" name="tretorno" id="tretorno"

with <> simbols,

but when the navigator show me the page, the input is just a simple text input.

I need a special time input for my html page help me.

Thanks in advance


Leonardo Ayala R. (Ecuador)

推荐答案

问题



参考 - HTML5 输入类型 [ ^ ]。



在这里你可以找到输入类型:时间。在那个盒子上,检查是否有小的浏览器图像,表明它们是否支持。



前两张图片适用于 IE FireFox ,这是交叉的,这意味着他们不支持。

其他像 Chrome Opeara Safari 支持它。



所以,我猜你在 IE Firefox 中看到了这个,所以他们是没有显示。



您可以查看链接 - http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_input_type_time [ Chrome 或其他支持的浏览器中的target =_ blanktitle =新窗口> ^ ]。它正在工作。





替代品



1. Sergey Alexandrovich Kryukov建议的解决方案。

2. ASP.NET时间选择器控件 [ ^ ]

3. ASP.NET 4.0 TimePicker用户控件 [ ^ ]。

4. ASP.NET TimePicker控件 [ ^ ]。

5。 10个jQuery Time Picker插件 [ ^ ]。
Problem

Refer - HTML5 Input Types[^].

Here you can find "Input Type: time". On that box itself, check there are small images of browsers which indicates whether they support this or not.

And first two images are for IE and FireFox, which are crossed, that means they don't support.
Others like Chrome, Opeara and Safari support it.

So, I guess you are seeing this in IE and Firefox, so they are not showing.

You can check the link - http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_input_type_time[^] in Chrome or other supported browsers. It is working.


Alternatives

1. Solution that Sergey Alexandrovich Kryukov has suggested.
2. ASP.NET Time Picker Control[^]
3. ASP.NET 4.0 TimePicker User Control[^].
4. ASP.NET TimePicker Control[^].
5. 10 jQuery Time Picker Plugins[^].


或者,我建议使用 DateTimePicker for ASP.NET:

DateTimePicker Web控制 [ ^ ]。



-SA
Alternatively, I would recommend using DateTimePicker for ASP.NET:
DateTimePicker Web Control[^].

—SA


这篇关于如何在html中创建时间字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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