0 forms input twitter-bootstrap
我需要在 html 输入中询问用户的持续时间。
铁 03h 12m 12s
有没有办法给他一个选择,比如输入类型日期?
我使用 Bootstrap 4。
谢谢
<input type='number'>设置min和max
input,
label {
font: inherit;
width: 4ch;
}Run Code Online (Sandbox Code Playgroud)
<form id='duration'>
<input id='h' name='h' type='number' min='0' max='24'>
<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>Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2545 次 |
| 最近记录: |