我需要询问用户 html 输入的持续时间。
FE 03小时12米12秒
有什么办法给他一个选择,比如输入类型日期?
我使用 Bootstrap 4。
谢谢
<input type='number'>
set min
and max
Demo
input,
label {
font: inherit;
width: 4ch;
}
<form id='duration'>
<input id='h' name='h' type='number' min='0' max='23'>
<label for='h'>h</label>
<input id='m' name='m' type='number' min='0' max='59'>
<label for='m'>m</label>
<input id='s' name='s' type='number' min='0' max='59'>
<label for='s'>s</label>
</form>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)