• altas(ajax)控件(九):可拖动面板DragPanel


     
    使用非常简单:

                
    <asp:Panel ID="Panel6" runat="server" Width="250px" style="z-index: 20;">
                    
    <asp:Panel ID="Panel7" runat="server" Width="100%" Height="20px"
                        BorderStyle
    ="Solid" BorderWidth="2px" BorderColor="black">
                            
    <div class="dragMe">用鼠标拖动</div>
                    
    </asp:Panel>
                    
    <asp:Panel  ID="Panel8" runat="server" Width="100%" Height="250px"
                        Style
    ="overflow: scroll;" BackColor="#0B3D73" ForeColor="whitesmoke"
                        BorderWidth
    ="2px" BorderColor="black" BorderStyle="Solid" >
                            
    <div>
                                
    <p>This panel will reset its position on a postback or page refresh.</p>
                                
    <hr />
                                
    <p><%= GetContentFillerText() %></p>
                            
    </div>
                    
    </asp:Panel>
                
    </asp:Panel>
            
    <ajaxToolkit:DragPanelExtender ID="DragPanelExtender1" runat="server"
                TargetControlID
    ="Panel6"
                DragHandleID
    ="Panel7" />

     

     
    ·                  TargetControlID指定可以拖动的面板的ID
    ·                  DragHandleID指定一个ID,作为拖动面板的标题栏。
     
    效果如下:http://www.asp.net/AJAX/Control-Toolkit/Live/DragPanel/DragPanel.aspx
     
  • 相关阅读:
    Html页中使用OCX控件
    Delphi 7 升级到 Delphi 2010 总结
    Delphi2010下的FillChar
    机器学习之基于朴素贝叶斯文本分类算法
    JDBC对MySQL数据库存储过程的调用
    HDU1788 Chinese remainder theorem again【中国剩余定理】
    Hadoop分布式文件系统--HDFS结构分析
    【php学习笔记】ticks篇
    怎样退出App之前唤醒还有一个App?
    Java 实现策略(Strategy)模式
  • 原文地址:https://www.cnblogs.com/hainange/p/6153355.html
Copyright © 2020-2023  润新知