在jsp页面中,用<input type="text" name="user">和<input type="password" name="password">建立起来的输入框,无论怎么设置width和height属性都不能使两者大小一样.不知道大家是怎么解决的.听说用css能控制,大家帮我看下该怎么写啊

解决方案 »

  1.   

    <input type="text" class=style1 name="username">
    <input type="password" class=style1 name="password">
    css
    <style type="text/css">
    <!--
    .STYLE1 {
    size:15;
             maxlength:20;
             width:30;
             height:10;
    }
    -->
    </style>
      

  2.   

    <input type="text" name="user" style="width:120px;height:20px">
    <input type="password" name="password" style="width:120px;height:20px">