所以我的网页上有一个标签和一个文本框,他们不会呆在桌子里面。这是代码:
<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; ">
答案 0 :(得分:1)
将您的代码更改为
<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>
试试这个