<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.big_box{
margin: auto;
width: 800px;
height: 660px;
border: 1px solid silver;
text-align: center;
line-height: 40px;
font-weight: bold;
list-style-type: none;
}
.big_box span{
display: inline-block;
width: 200px;
height: 40px;
border-top: 1px solid silver;
}
.big_box li{
width: 600px;
height: 40px;
border-top: 1px solid silver;
border-left: 0px;
display: inline-block;
}
.big_box input{
width: 200px;
height: 25px;
}
</style>
</head>
<body>
<div class="big_box">
<h2>HTML新表单</h2>
<span>说明</span><li>控件效果</li>
<span>颜色选择器</span><li><input type="color"></li>
<span>日期时间</span><li><input type="datetime-local" value="2017-05-08T12:17:53" autofocus></li>
<span>日期</span><li><input type="date" value="2017-05-08"></li>
<span>时间</span><li><input type="time"></li>
<span>电子邮件</span><li><input type="email" placeholder="请输入电子邮件"></li>
<span>网址</span><li><input type="url" placeholder="请输入网址"></li>
<span>数字</span><li><input type="number" value="18" step="3" min="18" max="99"></li>
<span>滑动条</span><li><input type="range" color="blue"></li>
<span>搜索文本框</span><li><input type="search" placeholder="搜索从这里开始"></li>
<span>电话号码</span><li><input type="tel" placeholder="只能输入数字"></li>
<span>自动填充</span><li><input type="text" list="sel">
<datalist id="sel">
<option value="软件1"></option>
<option value="软件2"></option>
<option value="网络1"></option>
<option value="网络2"></option>
</datalist></li>
<span>文本输入提供备选框</span><li><input type="text"></li>
<span> </span><li><input type="submit" value="提交" style="width: 150px;height: 40px;"></li>
</div>
</body>
</html>
效果如图:谷歌浏览器