<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>输入框输入提示代码</title> </head> <body> <input name="keyword" type="text" value="请输入关键字" onFocus="this.value=‘‘" onBlur="if(!value){value=defaultValue;}"> <input type="text" class="text-130" value="请输入姓名" onmouseover="this.focus()" onblur="if (this.value ==‘‘) this.value=‘请输入姓名‘" onfocus="this.select()" onclick="if (this.value==‘请输入姓名‘) this.value=‘‘"> </body> </html>
时间: 2024-10-24 10:17:35