<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html>...</html><html xmlns="http://www.w3.org/1999/xhtml"> 
<head>...</head><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用CSS控制输入框input悬停交互样式</title>
<style type="text/css">
<!--
input {border:1px solid #c00;}
input {star : expression(
onmouseover=function(){this.style.borderColor="#060"},
onmouseout=function(){this.style.borderColor="#c00"})}
-->
</style>
</head> 
<body>...</body><body>
姓名:<input type="text" /><br />
年龄:<input type="text" /><br />
性别:<input type="text" /><br />
手机:<input type="text" /><br />
地址:<input type="text" /><br />
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html>...</html><html xmlns="http://www.w3.org/1999/xhtml"> 
<head>...</head><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用CSS控制输入框input悬停交互样式</title>
<style type="text/css">
<!--
input {border:1px solid #c00; background:#fff; }
input {star : expression(
onmouseover=function(){this.style.backgroundColor="#eee"},
onmouseout=function(){this.style.backgroundColor="#fff"})}
.in40 {width:40px;}
.in80 {width:80px;}
.in120 {width:120px;}
.in200 {width:200px;}
-->
</style>
</head> 
<body>...</body><body>
姓名:<input class="in80" type="text" /><br />
年龄:<input class="in40" type="text" /><br />
性别:<input class="in40" type="text" /><br />
手机:<input class="in120" type="text" /><br />
地址:<input class="in200" type="text" /><br />
</body>
</html>