在asp.net中,标签不会留在表中
所以我的网页上有一个标签和一个文本框,它们不会留在桌子里。代码如下:在asp.net中,标签不会留在表中,asp.net,Asp.net,所以我的网页上有一个标签和一个文本框,它们不会留在桌子里。代码如下: <table position: absolute; bottom:0px; border="2" style="width: 100%"> <asp:Label ID="Label1" runat="server" Text="Total de Marcações com os critérios indicados:"></asp:Label><asp:TextB
<table position: absolute; bottom:0px; border="2" style="width: 100%">
<asp:Label ID="Label1" runat="server" Text="Total de Marcações com os critérios indicados:"></asp:Label><asp:TextBox ID="txtTotalLinhas" runat="server" ReadOnly="True"></asp:TextBox>
</table>
表格就在标签和文本框下面,有人知道为什么吗?
这是一个打印,标签下面的一行和文本框是表格
值得注意的是,这些都在一个div中,这里是div代码
<div style=" float:left; width:50%; border-right:1px solid gray; border-left:1px solid gray; ">
将代码更改为下面的
<table position: absolute; bottom:0px; border="2" style="width: 100%">
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text="Total de Marcações com os critérios indicados:"></asp:Label>
</td>
<td><asp:TextBox ID="txtTotalLinhas" runat="server" ReadOnly="True"></asp:TextBox>
</td>
</tr>
</table>
试试这个