在input属性里面加入一段代码就行 οnfοcus="this.placeholder=''" οnblur="this.placeholder='请输入您想搜索的内容......'" 转载于:https://www.cnblogs.com/lovebear123/p/11381844.html