input点击后placeholder中的提示消息消失,而不是输入文字的时候消失

在input属性里面加入一段代码就行

onfocus="this.placeholder=''" onblur="this.placeholder='请输入您想搜索的内容......'"
 
posted @ 2019-08-20 11:16  熊大的小跟班  阅读(1847)  评论(0编辑  收藏  举报