写出如下代码时
<!DOCTYPE html>
<html>
<title>html5 test</title>
<body>
<datalist id="dl">
<option value="11"/>
<option value="22"/>
<option value="33"/>
<option value="dd"/>
</datalist>
color:<input type="color" /><br />
date:<input type="date"/><br />
datetime:<input type="datetime"/><br />
email:<input type="email"/><br />
file:<input type="file"/><br />
month:<input type="month"/><br />
number:<input type="number" list="dl" autofocus="true"/><br />
range:<input type="range" min="0" max="8" step="2"/><br />
search:<input type="search"/><br />
tel:<input type="tel" list="dl"/><br />
url:<input type="url"/><br />
week:<input type="week" autofocus="true"/><br />
time:<input type="time"/><br />
text:<input type="text" list="dl" pattern="[\w]{0,5}"/><br />
text2:<input type="text" placeholder="23" autofocus="true"/><br />
</body>
</html>
经测验,file类型都可以用,safari浏览器对各标签支持比较不错。