---
title: "如何在html文本框输入信息之前在文本框中显示一段提示信息"
author: "cloklo"
date: "2013-08-09T08:57:59Z"
tags: []
categories: ["Web前端"]
slug: "html"
draft: false
lastmod: "2013-08-09T08:57:59Z"
id: 1922346
url: "https://cloklo.iteye.com/blog/1922346"
---

```
<input  type="text"  
	    		onfocus="if(value=='为空则查询全部！'){value='';}" 
	    		onblur="if(value==''){value='为空则查询全部！';}"
				value="为空则查询全部！"
	    		/>
```