我正在为我的登录表单使用此表单设置:
<tr>
<td class="label"> Username:</td>
<td> <input id="id_username" type="text" name="username" maxlength="30" /></td>
</tr>
<tr>
<td class="label"> Password:</td>
<td> <input a="text" type="password" name="password" id="id_password" /></td>
</tr>
使用 Firefox 时,两个输入框具有相同的大小。然而,当我使用 IE 9 时,密码字段较小。
摆脱这种行为的最佳方法是什么?
使用 CSS 应用固定width
元素的值,例如:
.fixed-input {
width: 150px;
}
....
<input class="fixed-input" id="id_username" type="text" name="username" maxlength="30" />
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)