<!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>
<title>Test</title>
</head>
<body>
<table border=1'>
<tr><td> </td>
<td onclick="document.getElementById('txt1').focus();">
<input id='txt1' type="text" maxlength='40' value='请在此输入'
onfocus="if(this.value=='请在此输入')this.value='';" onblur="if(this.value=='')this.value='请在此输入';"/></td></tr>
</table>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
</head>
<body>
<table border=1'>
<tr><td> </td>
<td onclick="document.getElementById('txt1').focus();">
<input id='txt1' type="text" maxlength='40' value='请在此输入'
onfocus="if(this.value=='请在此输入')this.value='';" onblur="if(this.value=='')this.value='请在此输入';"/></td></tr>
</table>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货