日期:2014-05-16 浏览次数:20459 次
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
#txt1 { border-right:none;float:left; }
#txt2 { border-left:none;float:left;width:10px;cursor:pointer;font-weight:bolder; }
</style>
</head>
<body>
<div id="div1" >
<input type="text" id="txt1" />
<input type="text" id="txt2" value="X" readonly="readonly" onclick="document.getElementById('txt1').value='';"
onfocus="document.getElementById('txt1').focus();" />
</div>
</body>
</html>