这是因为如果你设置为password之后,它的默认字体和text已经不一样了,把两个都设置为一样的就可以了.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
input{border:1px solid #ccc; font-family:Arial, Helvetica, sans-serif; font-size:12px;}
</style>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="password" /><br /><br />
<input type="text" />
</td>
</tr>
</table>
</body>
</html>