HTML5 中list 和datalist实例
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>s</title>
</head>
<body>
<form>
<input tupe="text" name="greating" list="greating">
<datalist id="greating">
<option value="html5">
html5
</option>
<option value="css3">
css3
</option>
<option value="js">
js
</option>
</datalist>
</form>
</body>
</html>
效果:
23:01:09 2017-09-02
越努力越幸运