我现在是不能出现滚动条,这样就把页面撑的很大,很难看
有哪位能告诉我,怎么能让panel出现滚动条啊

解决方案 »

  1.   

    可是没这个属性啊,我自己在页面里面加这个属性都是浪线显示在代码里面直接就是报错的
    我的是framework1.1.4版本
      

  2.   

    <asp:Panel id="Panel1"  autoscroll=true style="Z-INDEX: 101; LEFT: 360px; POSITION: absolute; TOP: 280px" runat="server">Panel</asp:Panel>
      

  3.   

    <asp:Panel style="width:200px;height300px;overflow:auto" ...
      

  4.   

    <asp:Panel id="Panel2" runat="server" Height="15px" Width="100%" scroll="auto">
    <asp:checkboxlist id="chkListRisk" runat="server" Width="100%" RepeatColumns="5" RepeatDirection="Horizontal"></asp:checkboxlist>
    </asp:Panel>我是这样设置的
    它老是撑大那个框架
      

  5.   

    不用管她报错,浏览由效果就可以当然,严格来说,你要定义个 css ,然后使用 panel 的 cssclass 引用它
      

  6.   

    <asp:Panel id="Panel1" style="Z-INDEX:101;LEFT:360px;OVERFLOW:auto;POSITION:absolute;TOP:280px"
    runat="server" Width="72px" Height="48px">Pan
    <asp:Label id="Label1" runat="server" Width="49px" Height="99px">Label</asp:Label>el</asp:Panel>
    中加OVERFLOW:auto;
      

  7.   


    <asp:Panel id="Panel2" runat="server" Height="15px" Width="100%" scroll="auto">
    <asp:checkboxlist id="chkListRisk" runat="server" Width="100%" RepeatColumns="5" RepeatDirection="Horizontal"></asp:checkboxlist>
    </asp:Panel>在里面再加一个panel拉大,比panel2长,你就可以看到滚动条了<asp:Panel id="Panel2" runat="server" Height="15px" Width="100%" scroll="auto">
    <asp:Panel id="Panel2" runat="server" Height="150px" Width="100%" >
    <asp:checkboxlist id="chkListRisk" runat="server" Width="100%" RepeatColumns="5" RepeatDirection="Horizontal"></asp:checkboxlist>
    </asp:Panel>
    </asp:Panel>