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

 
posted @ 2017-09-02 23:02  1点  阅读(1130)  评论(0编辑  收藏  举报