解决方法如下:<input type="text" value="搜索乐高资讯" onfocus="if(this.value=='搜索乐高资讯')value='';" onblur="if(this.value=='')value='搜索乐高资讯'"/>