用纯html元素实现日期选择控件

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/WinstonLau/article/details/88543160
  • 此控件是由谷歌浏览器自身提供的,在不同版本或者是不同品牌的浏览器中,其表现形式可能有所不同,甚至不排除有部分浏览器不支持此特性
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>input标签的type等于date</title>
</head>
<body>
    <input type="date">
</body>
</html>

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/WinstonLau/article/details/88543160