2013年2月27日
摘要: 编写html代码,看了下draggable参数的各种效果。包括以下参数:1。jQuery("#draggable").draggable();2。jQuery("#draggable1").draggable({cursorAt:{cursor:"move",top:56,left:56}}); jQuery("#draggable2").draggable({cursorAt:{cursor:"crosshair",top:-5,left:-5}}); jQuery("#dragga 阅读全文
posted @ 2013-02-27 21:33 浩瀚孤鸿 阅读(665) 评论(0) 推荐(0)
摘要: JQuery UI Draggable插件用来使选中的元素可以通过鼠标拖动.Draggable的元素受影响css: ui-draggable, 拖动过程中的css: ui-draggable-dragging.如果需要的不仅仅是拖, 而是一个完整的拖放功能, 请参阅JQuery UI 的Droppable插件, 该插件提供了一个draggable放的目标.所有的回调函数(start, stop, drag等事件)接受两个参数: event: 浏览器原生的事件ui: 一个JQuery的ui对象, 其中有以下主要属性ui.helper: 正在拖动的元素的JQuery包装对象, ui.helper. 阅读全文
posted @ 2013-02-27 21:32 浩瀚孤鸿 阅读(229) 评论(0) 推荐(0)