如何使用 CSS 设计 jQuery 可拖动克隆的样式?
最佳答案
请参阅 tohster 的第二个答案 - 这已经过时了。
=======
http://webdevel.blogspot.com/2008/09/jquery-ui-draggables-helper-css-class.html这可能会有帮助
引自上述网站:
While working with jQuery UI 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;
}
关于jquery - 如何设计 jQuery 可拖动克隆的样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6489794/