网页设计中,文本框与密码文本框高度不一?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<style type="text/css">
<!--
。 input {
FONT-SIZE: 9pt;
BORDER-BOTTOM: 0px
color: #996600;
height: 20px;
width...全部
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<style type="text/css">
<!--
。
input {
FONT-SIZE: 9pt;
BORDER-BOTTOM: 0px
color: #996600;
height: 20px;
width: 120px;
}
-->
</style>
<body>
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results。
csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p><input type="text" name="T1" size="20" class="input"> <br>
<input type="password" name="T2" size="20" class="input"><br>
<input type="submit" value="提交" name="B1"><input type="reset" value="重置" name="B2"></p>
</form>
</body>
</html>
====================================================
因为密码默认都用·代替了文字,所以肯定是比文本要小,如果用CSS定义就不会出现问题啦。
代码如下:
<form name="admin_login" method="post" action="admin_check。asp">
账号:
<input name="admin_user" type="text" style="width:120px;height:25px;">
密码:
<input name="admin_pswd" type="password" style="width:120px;height:25px;">
<input type="image" name="sumbit" src="images/login_sumbit。
gif" width="60" height="20" border="0">
</form>。收起