<form>
//list与datalist的id关联
<input list="b" />
//注意是datalist不是details
<datalist id="b">
//注意是未闭合单标签
<option value="1">
<option value="2">
<option value="3">
<option value="4">
</details>
</form>
标签:datalist,标签,list,输入框,input,id
来源: https://www.cnblogs.com/Lilc20201212/p/15854088.html