2000下登陆窗口是正常的。xp下怎么变化了,谁知道阿???

ljy524963 2004-09-13 06:00:36
现在我在2000下做的登陆页面,用户名和密码的输入框是等长的
但是到xp下一看怎么密码那个输入框变长了阿??
<table border="0" cellspacing="0" cellpadding="0" height="77">
<tr>
<td align="right" class="text12-b">ID</td>
<td class="text12"><img src="img/space.gif" width="12" height="12"> </td>
<td class="text12"> <input type="text" name="userId" class="ank" size="20" maxlength="12" onKeyPress="javascript:onKeyPress('1')" AutoComplete = "off"> </td>
</tr>
<tr>
<td align="right" class="text12-b">pas</td>
<td class="text12"> </td>
<td class="text12"> <input type="password" name="pwd" class="ank" size="20" maxlength="8" onKeyPress="javascript:onKeyPress('2')"> </td>
</tr>
</table>
...全文
65 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
csdntzg 2004-09-15
  • 打赏
  • 举报
回复
可以用style强制定义两个INPUT的长度:

<input type="text" ... style="width:200px" ...>
<input type="password" ... style="width:200px" ...>
ljy524963 2004-09-15
  • 打赏
  • 举报
回复
.ank
{ COLOR: #000000;
FONT-FAMILY: "MS UI Gothic", "MS PGothic";
FONT-SIZE: 14px;
BACKGROUND-COLOR: #ffffff;
}

这样就解决了
FONT-FAMILY: "MS UI Gothic", "MS PGothic";
赫赫。
cybernaute 2004-09-13
  • 打赏
  • 举报
回复
我这里显示正常啊!
如果实在不行的话,试试css吧!
.ank {width: 12px; border: 1px #000000 solid;}

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧