主页
HTML
HTML 输入类型
试一试:input type = time
运行 ❯
建立您
自己的
网站
×
改变方向
保存代码
改变主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>Show a Time Input Control</h1> <p>The <strong>input type="time"</strong> allows the user to select a time (no time zone):</p> <p>If the browser supports it, a time picker pops up when entering the input field.</p> <form action="/action_page.php"> <label for="appt">Select a time:</label> <input type="time" id="appt" name="appt"> <input type="submit" value="Submit"> </form> <p><strong>Note:</strong> type="time" is not supported in Internet Explorer 11.</p> </body> </html>