Accordion


 

  
  
  
  
  1. <asp:Accordion ID="Accordion1" runat="server" SelectedIndex="1"   
  2.  
  3. HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"   
  4.  
  5. ContentCssClass="accordionContent" FadeTransitions="true" FramesPerSecond="40"   
  6.  
  7. TransitionDuration="250" AutoSize="None" RequireOpenedPane="true" SuppressHeaderPostbacks="true">  
  8. <Panes>  
  9. <asp:AccordionPane ID="AccordionPane1" runat="server">   
  10.  
  11. <Header>1. Accordion</Header>   
  12.  
  13. <Content>   


The Accordion is a web control that allows you to provide multiple panes and display them one at a time.

It is like having several

where only one can be expanded at a time. The Accordion is implemented as a web control that contains

AccordionPane web controls. Each AccordionPane control has a template for its Header and its Content.

We keep track of the selected pane so it stays visible across postbacks.

  
  
  
  
  1. </Content>   
  2.  
  3. </asp:AccordionPane>   
  4.  
  5. <asp:AccordionPane ID="AccordionPane2" runat="server">   
  6.  
  7. <Header>2. Accordion</Header>   
  8.  
  9. <Content>   

The Accordion is a web control that allows you to provide multiple panes and display them one at a time.

It is like having several

where only one can be expanded at a time. The Accordion is implemented as a web control that contains

AccordionPane web controls. Each AccordionPane control has a template for its Header and its Content.

We keep track of the selected pane so it stays visible across postbacks.

  
  
  
  
  1. </Content>   
  2.  
  3. </asp:AccordionPane>   
  4.  
  5.  
  6. <asp:AccordionPane ID="AccordionPane3" runat="server">   
  7.  
  8. <Header>3. Accordion</Header>   
  9.  
  10. <Content>   

The Accordion is a web control that allows you to provide multiple panes and display them one at a time.

It is like having several

where only one can be expanded at a time. The Accordion is implemented as a web control that contains

AccordionPane web controls. Each AccordionPane control has a template for its Header and its Content.

We keep track of the selected pane so it stays visible across postbacks.

  
  
  
  
  1. </Content>   
  2.  
  3. </asp:AccordionPane>   
  4. </Panes>  
  5. </asp:Accordion>  
  6.  
  7. .accordionHeader  
  8. {  
  9. border: 1px solid #2F4F4F;  
  10. color: #000000;  
  11. background-color: #669999;  
  12. font-family: 华文隶书;  
  13. font-size: x-large;  
  14. font-weight: bold;  
  15. padding: 5px;  
  16. margin-top: 5px;  
  17. cursor: pointer;  
  18. font-style: italic;  
  19. width:400px;  
  20. }   
  21.  
  22. .accordionContent  
  23. {  
  24. margin: 0px;  
  25. background-color: #D3DEEF;  
  26. border: 1px dashed #2F4F4F;  
  27. border-top: none;  
  28. padding: 5px;  
  29. padding-top: 10px;  
  30. width:400px;  
  31. }   
  32.  
  33. .accordionHeaderSelected  
  34. {  
  35. border: 1px solid #2F4F4F;  
  36. color: white;  
  37. background-color: #5078B3;  
  38. font-family: 华文新魏;  
  39. font-size: large;  
  40. font-weight: bold;  
  41. padding: 5px;  
  42. margin-top: 5px;  
  43. cursor: pointer;  
  44. width:400px;  
  45. }   

 

你可能感兴趣的:(server,asp,accordion)