aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/html/element/input/datetime/index.html
blob: 4cdfbf07647476d057b25cb91f8903d9b2542266 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
title: <input type="datetime">
slug: Web/HTML/Element/Input/datetime
translation_of: Web/HTML/Element/input/datetime
---
<div>{{HTMLRef}}{{obsolete_header}}</div>

<p>HTML <code>&lt;input type="datetime"&gt;</code> 是一个控件,用于输入日期和时间(小时、分钟、秒和秒的小数)以及时区。这个特性已经 <strong><a class="external external-icon" href="https://github.com/whatwg/html/issues/336">从 WHATWG HTML 中移除</a></strong>,并且不再受浏览器支持。</p>

<p>反之,浏览器实现了(并且提倡开发者使用)<code>{{HTMLElement("input/datetime-local", "datetime-local")}}</code> 输入类型。</p>

<h2 id="另见">另见</h2>

<ul>
 <li>{{HTMLElement("input")}} 元素</li>
</ul>