jQuery UI更改拖动元素的样式 [英] jQuery UI change styling of dragged element
本文介绍了jQuery UI更改拖动元素的样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想更改可拖动的列表项的颜色.
I would like to change the color of a list item that is draggable once I drag it.
感谢您的帮助.
$("#DragWordList li").draggable({helper: 'clone'});
推荐答案
您只想简单地设置CSS类 ui-draggable-dragging
You want to simply style the CSS class ui-draggable-dragging
例如
.ui-draggable-dragging{
border:1px dashed red;
background:yellow;
}
这篇关于jQuery UI更改拖动元素的样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文