您的位置:首页 > 其它

第十五篇: Ajax Control Toolkit 控件包--3. DragPanel (拖动效果)

2008-01-26 20:52 513 查看
1. 从母版页: MasterPage_Ajax.master 新建 Web窗体: DragPanel.aspx

2. 在 ContentPlaceHolder1 在加入一个 div , 这是能拖动的范围。


Code

<style type="text/css">

.Panel1

{

background-color: #FF9900;

height: 200px;

width: 300px;

}

.Panel2

{

background-color: #CCCC00;

cursor: move;

}

.style1

{

height: 600px;

width: 800px;

}

</style>

6. 设置: Panel1 控件,Panel2 控件 的 CssClass 属性为: .Panel1 , .Panel2



7. OK ,, 试试看 ^^



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐