panel在浏览器中表现为div
panel控件盛放空间是如果设定GroupingText属性在浏览器中表现为<fieldset>的div标签
<div>
<div id="Panel1" style="height:86px;">
<fieldset>
<legend>
box
</legend>
<textarea name="TextBox1" rows="2" cols="20" id="TextBox1">
</textarea>
<br />
<input type="submit" name="Button1" value="Button" id="Button1" />
<br />
<input id="RadioButton1" type="radio" name="gender" value="RadioButton1" /><label for="RadioButton1">女</label>
<input id="RadioButton2" type="radio" name="gender" value="RadioButton2" /><label for="RadioButton2">男</label>
</fieldset>
</div>//浏览器源码
<div>
<asp:Panel ID="Panel1" runat="server" Height="86px" GroupingText="box">
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
<br />
<asp:Button ID="Button1" runat="server" Text="Button" />
<br />
<asp:RadioButton ID="RadioButton1" runat="server" Text="女" runat="server"
GroupName="gender" />
<asp:RadioButton ID="RadioButton2" runat="server" runat="server" Text="男"
GroupName="gender"/>
</asp:Panel>
</div>//设计器源码
panel控件盛放空间是如果设定GroupingText属性在浏览器中表现为<fieldset>的div标签
<div>
<div id="Panel1" style="height:86px;">
<fieldset>
<legend>
box
</legend>
<textarea name="TextBox1" rows="2" cols="20" id="TextBox1">
</textarea>
<br />
<input type="submit" name="Button1" value="Button" id="Button1" />
<br />
<input id="RadioButton1" type="radio" name="gender" value="RadioButton1" /><label for="RadioButton1">女</label>
<input id="RadioButton2" type="radio" name="gender" value="RadioButton2" /><label for="RadioButton2">男</label>
</fieldset>
</div>//浏览器源码
<div>
<asp:Panel ID="Panel1" runat="server" Height="86px" GroupingText="box">
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
<br />
<asp:Button ID="Button1" runat="server" Text="Button" />
<br />
<asp:RadioButton ID="RadioButton1" runat="server" Text="女" runat="server"
GroupName="gender" />
<asp:RadioButton ID="RadioButton2" runat="server" runat="server" Text="男"
GroupName="gender"/>
</asp:Panel>
</div>//设计器源码