ASP.NET Panel ScrollBars 屬性
定義和用法
ScrollBars 屬性用於設置或返回Panel 控件中滾動條的位置和可見性。
語法
<asp:Panel ScrollBars="value" runat="server">
Some Content
</asp:Panel>
Some Content
</asp:Panel>
属性 | 描述 |
---|---|
value | 规定是否显示滚动条。 可能的值:
|
實例
下面的實例把Panel 控件中的ScrollBars 屬性設置為"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>
演示實例»
Panel控件