文本字段对齐的问题

来源:百度知道 编辑:UC知道 时间:2024/05/28 07:07:43
<table width="160" height="60" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="55" height="20" align="left" valign="middle"><span class="STYLE21">用户名:</span></td>
<td width="105" height="20" align="left" valign="middle"><form id="form1" name="form1" method="post" action="">
<label >
<input name="user_id" type="text" size="11" />
</label>
</form> </td>
</tr>
<tr>
<td wid

这样就没问题了。

<style type="text/css">
<!--
.css1 {
font-family: "宋体";
font-size: 12px;
line-height: 25px;
text-decoration: none;
}
-->
</style>
<table width="160" height="60" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100" height="20" align="left" valign="top"><span class="css1">用户名:</span></td>
<td height="20" align="left" valign="middle"><form id="form1" name="form1" method="post" action="">
<label >
<input name="user_id" type="text" size="11" />
</label>
</form> </td>
</tr>
<tr>
<td width="100" height="20