在2000下开发,jsp中写如下代码。
<tr>
<td width="40%" height="21">
<div class="style_size_10">
<bean:message key="I28" />
</div>
</td>
<td width="60%">
<html:text property="username" value=""/>
</td>
</tr>
<tr>
<td width="40%" height="22">
<div class="style_size_10">
<bean:message key="I29" />
</div>
  </td>
<td width="60%">
<html:password property="password" value="" size ="20"/>
</td>
</tr>
2000下看两2个框是相同长度高度。
在xp下看时候,password变高了,变长了。
而且,表格tr,td的宽度也是相同的。
在xp
2000的ie版本是:IE6.0sp1
xp的ie版本:IE6.0sp2
请问有人遇到过相同问题吗?
开发环境:tomcat5.5.16,jdk1.5,struts1.2.
IDE:Eclipse SDK Version: 3.1.2+WTP插件

解决方案 »

  1.   

    在2000下开发,jsp中写如下代码。  
    <tr>  
    <td  width="40%"  height="21">  
    <div  class="style_size_10">  
    <bean:message  key="I28"  />  
    </div>  
    </td>  
    <td  width="60%">  
    <html:text  property="username"  value=""/>  
    </td>  
    </tr>  
    <tr>  
    <td  width="40%"  height="22">  
    <div  class="style_size_10">  
    <bean:message  key="I29"  />  
    </div>  
       </td>  
    <td  width="60%">  
    <html:password  property="password"  value=""  size  ="20"/>  
    </td>  
    </tr>  
    2000下看textbox和password2个框是相同长度高度。  
    在xp下看时候,password变高了,变长了。  
    表格tr,td的宽度也是相同的。  
    2000的ie版本是:IE6.0sp1  
    xp的ie版本:IE6.0sp2  
    请问有人遇到过相同问题吗,如何解决这个问题。谢谢,高分求。 
    开发环境:tomcat5.5.16,jdk1.5,struts1.2.  
    IDE:Eclipse  SDK  Version:  3.1.2+WTP插件
      

  2.   

    用style定一下password那个textfield的宽度
      

  3.   

    这是因为WinXP在系统层采用了全新的用户UI体验,它的textbox是平的
    <input type="text" style="border:1px solid #999999; ">
    这样定义出来的文本框无论是在XP还是其他Windows平台下看到的都是一样的。
      

  4.   

    抱歉疏忽了。html:text和html:password也有style属性的,写法同上。