<form class="enter"> <input type="text" value="請(qǐng)輸入你要搜索的關(guān)鍵詞" class="bdys" onfocus="this.value=''" onblur="this.value='請(qǐng)輸入你要搜索的關(guān)鍵詞'"/></form> 文本框獲得焦點(diǎn)清除文字,失去焦點(diǎn)恢復(fù)文字。但是要實(shí)現(xiàn)具體功能就要用到asp或者php了。。
<form class="enter"> <input type="text" value="請(qǐng)輸入你要搜索的關(guān)鍵詞" class="bdys" onfocus="this.value=''" onblur="this.value='請(qǐng)輸入你要搜索的關(guān)鍵詞'"/></form> 文本框獲得焦點(diǎn)清除文字,失去焦點(diǎn)恢復(fù)文字。但是要實(shí)現(xiàn)具體功能就要用到asp或者php了。。