搜索框

<input type="text" placeholder="搜索" id="sousuo" onkeyup ="bian()"/>

1.用placeholder  显示的搜索,在输入字符时,就会消失

2.onkeyup 就是只要在搜索框输入字符下拉菜单就会相应显示

原文地址:https://www.cnblogs.com/youshashuosha/p/5262299.html