Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在asp.net中,标签不会留在表中_Asp.net - Fatal编程技术网

在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>
试试这个