输入类型Datetime-local怎么用
更新:HHH   时间:2023-1-7


本篇内容主要讲解“输入类型Datetime-local怎么用”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“输入类型Datetime-local怎么用”吧!

该datetime-local输入类型,用户可以选择本地的日期和时间,包括年,月,日以及小时和分钟的时间。

让我们尝试以下示例以了解其基本工作原理:

例试试这个代码»

<form>

    <label for="mydatetime">Choose Date and Time:</label>

    <input type="datetime-local" id="mydatetime">

</form>

警告:type="datetime-local" Firefox,Safari和Internet Explorer浏览器不支持输入。Chrome,Edge和Opera浏览器目前支持。

到此,相信大家对“输入类型Datetime-local怎么用”有了更深的了解,不妨来实际操作一番吧!这里是天达云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

返回web开发教程...