html5中如何写关于生日的表单

html5中如何写表单:内容是个人信息中的出生日期,要求分别用下拉的表单选择生日的年,月,日

本地日期时间(<input type=”datetime-local”/>)

属性 描述   值   

这是HTML里input元素的通用属性。就是输入框里的数据。    

min    日期或时间的最小值    

max    日期或时间的最大值    

step    步长。不同的类型有不同的缺省步长。


Date – 缺省是1天

Week – 缺省是1周

Month – 缺省是1月

Time – 缺省是1分钟

DateTime – 缺省是1分钟

Local DateTime – 缺省是1分钟

   

温馨提示:答案为网友推荐,仅供参考
第1个回答  推荐于2016-04-06
//根据需求自行修改

<html lang="en" data-framework="backbonejs">

<head>

<meta charset="utf-8">

<title>Backbone.js + RequireJS • TodoMVC</title>

<link rel="stylesheet" href="bower_components/todomvc-common/base.css">

<script src="bower_components/todomvc-common/base.js"></script>

</head>

<body>

<section id="todoapp">

<header id="header">

<h1>项目</h1>

<input id="new-todo" placeholder="需要做什么?" autofocus>

</header>

<section id="main">

<input id="toggle-all" type="checkbox">

<label for="toggle-all">所有标记为完成</label>

<ul id="todo-list"></ul>

</section>

<footer id="footer"></footer>

</section>

<script data-main="js/main" src="bower_components/requirejs/require.js"></script>

</body>

</html>本回答被提问者和网友采纳