发布网友
共1个回答
热心网友
已解决如下,其实就是table的单元格跨列,最重要的是colspan="3"在起作用:
<table cellpadding="0" cellspacing="0" style="width: 600px; height: 318px; border: solid black 1px">
<thead style="width: 600px; height: 318px; border: solid black 1px“">
<tr>
<th colspan="3">
学习控件</th>
</tr>
</thead>
<tfoot style="border: solid black 1px">
<tr>
<td style="text-align: center" colspan="3">
<asp:Button ID="btnConfirm" runat="server" Width="100px" Text="确定" />
</td>
</tr>
</tfoot>
<tbody style="border: solid black 1px">
<tr>
<td style="width: 150px">
<asp:Label ID="Label2" runat="server" Width="150px" Height="20px">用户名称:</asp:Label></td>
<td style="width: 300px">
<asp:TextBox ID="TxtUserName" runat="server" Width="150px" Height="20px" TextMode="SingleLine"
MaxLength="20"></asp:TextBox></td>
<td style="width: 150px">
</td>
</tr>
<tr>
<td style="width: 150px">
<asp:Label ID="Label3" runat="server" Width="150px" Height="20px">用户口令:</asp:Label></td>
<td style="width: 300px">
<asp:TextBox ID="txtUserPassword" runat="server" Width="150px" Height="20px" TextMode="Password"
MaxLength="20"></asp:TextBox></td>
<td style="width: 150px">
</td>
</tr>
<tr>
<td style="width: 150px">
<asp:Label ID="Label4" runat="server" Width="150px" Height="100px">用户简历:</asp:Label></td>
<td style="width: 300px">
<asp:TextBox ID="txtUserResume" runat="server" Width="150px" Height="100px" TextMode="MultiLine"
Rows="5" MaxLength="20"></asp:TextBox></td>
<td style="width: 150px">
</td>
</tr>
</tbody>
</table>