在IE中,两个文本框如下:

<input name="Code" type="text"id="Code"/>

<input name="Password" type="password" id="Password"/>

密码和普通文本框的宽度不一样,而在FireFox中一致,原因是字体文体,增加一个CSS设置即可.

input,select {
   font-family:Arial, Helvetica, sans-serif;
   font-size: 12px;
}

posted on 2009-06-05 07:33  garfieldtom  阅读(333)  评论(0编辑  收藏  举报