如何模拟Windows窗口和拖动
2018-09-30 · 拦捆绑,反诈骗,十年“卫”生活~
360安全卫士
360安全卫士是一款功能强、效果好、受用户欢迎的安全杀毒软件。360安全卫士拥有查杀木马、清理插件、修复漏洞、电脑体检、电脑救援、保护隐私,电脑专家,清理垃圾,清理痕迹多种功能。
向TA提问
关注
展开全部
用Ajax的ModalPopupExtender控件可以实现
详情如下:
<asp:Button ID="Button3" runat="server" Text="Button" />
<asp:Panel ID="Panel1" runat="server">
<div id="div1" style="width: 200px; height: 20px; background-color: Fuchsia">
<center>可以移动的窗体</center>
</div>
<div id="div2" style="width: 200px; height: 120px; background-color: Maroon">
<div style="padding-top: 60px">
<center>
<asp:Button ID="Button4" runat="server" Text="确定" />
<asp:Button ID="Button5" runat="server" Text="取消" /></center>
</div>
</div>
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" CancelControlID="Button5" OkControlID="Button4"
runat="server" TargetControlID="Button3" PopupControlID="Panel1" PopupDragHandleControlID="div1">
</cc1:ModalPopupExtender>
详情如下:
<asp:Button ID="Button3" runat="server" Text="Button" />
<asp:Panel ID="Panel1" runat="server">
<div id="div1" style="width: 200px; height: 20px; background-color: Fuchsia">
<center>可以移动的窗体</center>
</div>
<div id="div2" style="width: 200px; height: 120px; background-color: Maroon">
<div style="padding-top: 60px">
<center>
<asp:Button ID="Button4" runat="server" Text="确定" />
<asp:Button ID="Button5" runat="server" Text="取消" /></center>
</div>
</div>
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" CancelControlID="Button5" OkControlID="Button4"
runat="server" TargetControlID="Button3" PopupControlID="Panel1" PopupDragHandleControlID="div1">
</cc1:ModalPopupExtender>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询