删除Chrome输入中的秒数=时间 [英] Remove seconds in Chrome input=time

查看:169
本文介绍了删除Chrome输入中的秒数=时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Chrome的最新更新中(在我的例子中为23.0.1271.64 m),似乎input = time现在包含非活动且不可点击的秒。这在我们的网站中看起来不太好,所以我想知道是否有人找到了删除秒的方法。
不幸的是jsfiddle已经关闭,我不能在那里发布一个例子,但是我把它发布在这里,以便人们可以阅读它。

In the last update of Chrome ("23.0.1271.64 m" in my case), it seems that input=time now includes seconds that are inactive and not clickable. This doesn't look nice in our site so I want to know if someone have found a way to remove seconds. Unfortunately jsfiddle is down and I can't post an example there, but I post it here so people can read it anyway.

<html>
<head></head>
<body>
    <input type="time" value="00:44" name="tiiiiden"/>
</body>
</html>

由于秒只是躺在那里并且不可编辑,所以这可能是一个错误,它会很快修复。

Since seconds is only "lying there" and are not editable, it's possible that this is a bug and it will be fixed pretty soon.

推荐答案

在OSX和Linux上的Chrome 23稳定版如果不必要的话会省略秒字段,Windows上的Chrome 24 beta版也会省略它。我建议您等待Chrome 24的稳定版本。

Chrome 23 stable on OSX and Linux omits the seconds fields if it is unnecessary, and Chrome 24 beta on Windows also omits it. I recommend you to wait for Chrome 24 stable release.

这篇关于删除Chrome输入中的秒数=时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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