ASP.NET Panel ScrollBars property
Definition and Usage
ScrollBars property is used to set or return the Panel control scroll bar position and visibility.
grammar
<asp:Panel ScrollBars="value" runat="server">
Some Content
</asp:Panel>
Some Content
</asp:Panel>
属性 | 描述 |
---|---|
value | 规定是否显示滚动条。 可能的值:
|
Examples
The following examples set the ScrollBars property of a Panel control to "Auto":
<form runat="server">
<asp:Panel id="pan1" runat="server"
Height="100px" ScrollBars="Auto">
Some content
</asp:Panel>
</form>
<asp:Panel id="pan1" runat="server"
Height="100px" ScrollBars="Auto">
Some content
</asp:Panel>
</form>
The demonstration >>
Control Panel