开发者

ajaxToolkit:Accordion vertical scrollbar on Pane

开发者 https://www.devze.com 2023-01-02 07:02 出处:网络
<ajaxToolkit:Accordion ID=\"acc\" runat=\"server\"> <Panes> <ajaxToolkit:AccordionPane ID=\"pane1\" runat=\"server\">
        <ajaxToolkit:Accordion ID="acc" runat="server">
            <Panes>
                <ajaxToolkit:AccordionPane ID="pane1" runat="server">
                    <Header>
                        <span>&#1047;&#1072;&#1087;&#1088;&#1086;&#1089;</span>
       开发者_运维技巧             </Header>
                    <Content>
                        <asp:Panel ID="controlGrid" runat="server" Height="170px">

and It every time makes Vertical scrollbar there even with empty space after Panel on Content.

How to disable vertical scrollbar and empty space after panel inside 'Content' section ?


It seems like your panel isn't high enough for its contents. Give the panel a css class with

overflow:hidden;

Also, make sure you aren't setting the

ScrollBars

property on the asp:Panel to anything other than "None". I don't see it in your code above, but maybe it's set in the code behind. "None" is the default so if it isn't being set that is fine.


I tried ContentCssClass="accordionContent" and

  .accordionContent
  {
    overflow: hidden;
  }

it did not work. But this helps ...

  <Content>
      <div style="overflow:hidden">
      </div>
  </Content>

...

0

精彩评论

暂无评论...
验证码 换一张
取 消