在Web应用程序上拖动和移动按钮 [英] Drag&Move Buttons on a web app

查看:123
本文介绍了在Web应用程序上拖动和移动按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网络应用程序,但用户希望能够将webform周围的按钮和其他控件移动到他们想要的位置。(拖动到他们想要按钮的位置)

Web应用程序没有鼠标事件参数,所以我该怎么做或者能够做这样的事情?



提前使用。

I have an web app, but the users wants to be able to move buttons and other controls around the webform to where they want it.(Drag to where they want the button to be)
Web apps doesn't have mouse event arguments, so how can I do that or will I be able to do something like this ?

Thanx in advance.

推荐答案

通过使用JQuery获取它,如果有人需要它发布代码。



Got it by using JQuery, posting the code if someone needs it.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.js"></script>




 <script type="text/javascript">


(窗口).load(function(){
(window).load(function () {


(document).ready(function(){
(document).ready(function () {


这篇关于在Web应用程序上拖动和移动按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆