HTML中Table的问题

发布网友

我来回答

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>

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com