我有一个面板里面有几个对象。当我向groupingtext属性添加文本时,框架显示面板的整个宽度,但只下降约5px,将所有对象留在框架之外。如何强制分组文本框覆盖面板的整个区域?
<asp:Panel ID="pnlLEAddress" runat="server" GroupingText="Legal Entity Address"
style="z-index: 1; left: 50px; top: 250px; position: absolute; height: 50px; width: 400px">
<asp:TextBox ID="txtLEName" runat="server"
style="z-index: 1; left: 20px; top: 10px; position: absolute">
</asp:TextBox>
<asp:TextBox ID="txtLEStreet" runat="server"
style="z-index: 1; left: 20px; top: 40px; position: absolute">
</asp:TextBox>
<asp:TextBox ID="txtLECityStateZip" runat="server"
style="z-index: 1; left: 20px; top: 70px; position: absolute">
</asp:TextBox>
<asp:TextBox ID="txtLECountry" runat="server"
style="z-index: 1; left: 20px; top: 100px; position: absolute">
</asp:TextBox>
</asp:Panel>
答案 0 :(得分:1)
显然,在这种情况下,您的面板将呈现为FieldSet。尝试在标记中添加以下样式:
<style>
#pnlLEAddress > fieldset {
height: 150px;
}
</style>