案例:html案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<form action="/example/html/form_action.aspx">
6
Enter a date before 1980-01-01:<br>
7
<input type="date" name="bday" max="1979-12-31"><br><br>
8
Enter a date after 2000-01-01:<br>
9
<input type="date" name="bday" min="2000-01-02"><br><br>
10
<input type="submit"> 
11
</form>
12
13
<p><strong>Note:</strong>
14
type="date" is not supported in Internet Explorer.</p>
15
16
</body>
17
</html>