如何用CSS样式jQuery draggable克隆?
解决方法
http://webdevel.blogspot.com/2008/09/jquery-ui-draggables-helper-css-class.html这可能是一个帮助
从上述网站引用:
While working with 07001 draggables,I have noticed that there does not seem to be a class associated with the draggable helper,and so it is styled in the same way as the draggable you selected. As a result you have to resort to the start function option to add the class dynamically:
- $(".dragme").draggable({helper: "clone",start: function(e,ui)
- {
- $(ui.helper).addClass("ui-draggable-helper");
- }
- });
As a result you have to resort to the start function option to add the class dynamically:
- .ui-draggable-helper {
- border: 1px dotted #000;
- padding: 6px;
- background: #fff;
- font-size: 1.2em;
- }