ドロップダウンリストは、選択に応じてテーブルの行を設定します。テーブルのサイズは、行数に関係なく、高さ 100% に固定されるはずです。ただし、テーブル内の行数と同じ大きさだけです。
私が使用しているマークアップは次のとおりです。
<table style="width:100%;height:100%">
<tr>
<td class="auto-style9">
<asp:DropDownList ID="ddlTechnicians" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="ddlTechnicians_SelectedIndexChanged">
<asp:ListItem Selected="True">Online</asp:ListItem>
<asp:ListItem>Offline</asp:ListItem>
<asp:ListItem>All Users</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
<asp:Table ID="tblTechnicians" CssClass="tblTechnicians"
runat="server">
</asp:Table>
</td>
</tr>
</table>
クラス tblTechnicians の CSS は次のとおりです。
.tblTechnicians
{
width: 100%;
height: 100%;
}
助けてくれてありがとう。