输入类型=“时间”超过24小时 [英] Input type="time" more than 24 hours

查看:182
本文介绍了输入类型=“时间”超过24小时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了以下问题:

在网络应用用户界面中,我希望用户输入以小时为单位的时间范围,以响应消息。时间表最长可达72小时。我们很乐意使用< input type =time> 但最多限制为24小时

In a web-app UI I want the user to input a timeframe in hours in which to respond to a message. The timeframe should be up to 72 hours. We’d love to use <input type="time"> but its limited to 24 hours max.

< input type =time> 具有可选的最大值。我认为默认最长24小时是有意义的,但如果最大可以设置为99:99小时,它会很方便。

<input type="time"> has an optional max value. I think a default maximum of 24 hours makes sense but it would be handy if the max could get set all the way up to 99:99 hours.

有关哪里有任何建议我可以建议更改标准吗?

Any suggestions on where I can suggest a change in the standard?

推荐答案

您可以尝试使用数字输入为:

You can try to use the number type as:

<input type="number" min="0" max="100">

这篇关于输入类型=“时间”超过24小时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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