简体   繁体   English

时间码的html5输入?

[英]html5 input for timecode?

I would like use an html5 input field for editing video and audio timecode. 我想使用html5输入字段来编辑视频和音频时间码。 Unfortunately, I cannot seem to find a good way to do this. 不幸的是,我似乎找不到解决此问题的好方法。 I want to display and edit: 我要显示和编辑:

  • hours, minutes, seconds, and milliseconds. 小时,分钟,秒和毫秒。

Here is what my investigation turns up thus far: 到目前为止,这是我的调查结果:

<input type="datetime-local"> displays day, month, year, am/pm information (not needed). <input type="datetime-local">显示日,月,年,上午/下午的信息(不需要)。

在此处输入图片说明

<input type="time"> does not display milliseconds information (needed) and displays am/pm information (not needed). <input type="time">不显示毫秒信息(需要),而显示am / pm信息(不需要)。

在此处输入图片说明

Do I need a custom widget? 我需要自定义窗口小部件吗? Does one exist? 是否存在? Can I modify the existing html5 widgets? 我可以修改现有的html5小部件吗?

If you need to be cross-browser compliant you will need a custom widget. 如果您需要跨浏览器兼容,则需要一个自定义小部件。 None of the standard input components act in this way across all browsers. 没有标准输入组件在所有浏览器中都以这种方式起作用。

However, specifying the step attribute will work in Chrome: 但是,指定step属性将在Chrome中运行:

<input type="time" step="00.01">

http://jsfiddle.net/Ng67n/ http://jsfiddle.net/Ng67n/

You can't modify the standard controls to do this, unless you use some sort of masking plugin on a standard text input. 您不能修改标准控件来执行此操作,除非您在标准文本输入上使用了某种屏蔽插件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM