代码如下:
<!DOCTYPE html>
<html>
<head>
<title>
Creating Date and Time Controls
</title>
</head>
HTML5 Forms
<body>
<form id="myForm">
<fieldset>
<legend>Creating Date and Time Controls</legend>
<p>
<label>Select a date and a time:
<input type="datetime" />
</label>
</p>
</fieldset>
</form>
</body>
</html>
测试连接:
很多浏览器不支持这种
input datetime
像
chrome
这种一般都支持,看你用什么浏览器了。最好的方法就是用
js | jquery
插件来做...