会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
董昊-web构架开发研究
3G时代是微软,谷歌还是苹果的?
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
posted on
2007-10-21 19:28
董昊(昊子)
阅读(
436
) 评论(
0
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
导航
博客园
首页
新随笔
联系
订阅
管理
公告