<table>
<tr>
<td style="text-align:right" >
<h2>
<asp:Label ID="lblxingzhi" runat="server" Text="课程性质:" Font-Bold="True" Font-Names="仿宋" Font-Size="Large"></asp:Label>
<asp:DropDownList ID="DDLxingzhi" runat="server" Height="25px" Width="166px"></asp:DropDownList>
</h2>
</td>
</tr>//换行作用
<tr>
<td style="text-align:right" >
<h2>
<asp:Label ID="lbltime" runat="server" Text="学时:" Font-Bold="True" Font-Names="仿宋" Font-Size="Large" ></asp:Label>
<asp:TextBox ID="txttime" runat="server" Height="19px" Width="160px"></asp:TextBox>
</h2>
</td>
</tr>
注意:??????textbox在浏览器里要比dropdownlist大6px
asp.net的格式对齐问题
最新推荐文章于 2020-02-08 14:26:35 发布