<td ><input type="txt" name="zhanghao" size="30" value=""></td>
</tr>
<tr>
<td>
密码:
</td>
<td> <input type="password" size="30" name="password" value=""></td>
</tr>
</table>
<table bgcolor="cccfff">
<tr >
<td align="center"><input type="submit" name="dL" value="登陆"></td>
<td align="center"><input type="reset" name="k' value="重置"></td>
<style>
input{
width:50px;
height:20px;
}
</style>
<form name="form1" method="post" action="">
<input type="text" name="textfield"><br/>
<input type="password" name="textfield2">
</form>
这样用CSS样式来控制就不会出现那样的问题了追问
input{
width:50px;
height:20px;
}
</style>
<form name="form1" method="post" action="">
<input type="text" name="textfield"><br/>
<input type="password" name="textfield2">
</form>
这样用CSS样式来控制就不会出现那样的问题了追问
这样定义不是连按钮都变长了?? 我是新手 还望指教
追答不会啊,这里不是width:50px;
这里的50可以调的啊,根据你要的宽度来调就可以了啊
温馨提示:答案为网友推荐,仅供参考
第1个回答 2011-04-15
max-length设置下咯 或样式表里设置下咯
第2个回答 2011-04-15
把密码框的size改大点噻、或者把用户名框size改小点嘛追问
靠 这也太不靠谱了吧。。。。 他的数据不是一样的,换个浏览器可能就变的不一样的吧??
追答对呀、、不一样很正常哈、每个浏览器的解码方式是不一样的、