zoukankan      html  css  js  c++  java
  • AjaxControlToolkit——Accordion

    http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Accordion/Accordion.aspx

    先用好锤子、斧头,再去改造。
    英文看的真的很吃力,也很迷糊。

    <body>
        
    <form id="form1" runat="server">
            
    <asp:ScriptManager ID="ScriptManager1" runat="server">
            
    </asp:ScriptManager>
            
    <div>
                
    <pre>
        伸缩控件的使用
        Font-Strikeout:改变字体;
        FramesPerSecond:每秒帧数;
        TransitionDuration:动画过渡时间;
        AutoSize:限制容器pane的大小
        RequireOpenedPane:false时点击标题会显示其内容
        TransitionDuration:渐变效果
        
    </pre>
                
    <cc1:Accordion ID="Accordion1" runat="server" Font-Strikeout="false" FramesPerSecond="200"
                    AutoSize
    ="None" TransitionDuration="250" SuppressHeaderPostbacks="false" RequireOpenedPane="false">
                    
    <Panes>
                        
    <cc1:AccordionPane ID="AccordionPane1" runat="server" BackColor="red" Height="200">
                            
    <Header>
                                
    <img src="1.gif" onmouseover="this.src='2.gif';" onmouseout="this.src='1.gif';" />
                            
    </Header>
                            
    <Content>
                                
    <table>
                                    
    <tr>
                                        
    <td>
                                            ·白日依山尽
    </td>
                                    
    </tr>
                                    
    <tr>
                                        
    <td>
                                            ·欲穷千里目
    </td>
                                    
    </tr>
                                    
    <tr>
                                        
    <td>
                                            ·更上一层楼
    </td>
                                    
    </tr>
                                
    </table>
                            
    </Content>
                        
    </cc1:AccordionPane>
                        
    <cc1:AccordionPane ID="AccordionPane2" runat="server" BackColor="yellow" Height="200">
                            
    <Header>
                                
    <img src="1.gif" onmouseover="this.src='2.gif';" onmouseout="this.src='1.gif';" />
                            
    </Header>
                            
    <Content>
                                
    <table>
                                    
    <tr>
                                        
    <td>
                                            ·lightly come,lightly go
    </td>
                                    
    </tr>
                                    
    <tr>
                                        
    <td>
                                            ·It's all these for a reason
    </td>
                                    
    </tr>
                                    
    <tr>
                                        
    <td>
                                            ·ss
    </td>
                                    
    </tr>
                                
    </table>
                            
    </Content>
                        
    </cc1:AccordionPane>
                    
    </Panes>
                
    </cc1:Accordion>
            
    </div>
        
    </form>
    </body>

    经常看见导航使用伸缩效果。
    人的一生应该这样度过:当他回首往事的时候,不会因为虚度年华而悔恨,也不会因为碌碌无为而羞愧。
  • 相关阅读:
    P1991 无线通讯网
    P1155 双栈排序
    P2024 [NOI2001]食物链
    Bellman-Ford&&SPFA算法详解
    P1387 最大正方形
    NOIP2009 靶型数独
    P3812 【模板】线性基
    Misunderstood-Missing-逆向DP
    P3389 【模板】高斯消元法
    牛客练习赛37
  • 原文地址:https://www.cnblogs.com/htht66/p/1097863.html
Copyright © 2011-2022 走看看