可以在parent.Below代码中拖放子div吗?可以在col1、col2、col3中拖放。我想拖动子分区,使其位于该列中。例如:如果列Col1包含子级A、B、C,并且A中的除法应该是从A到A可排序的。
new glow.widgets.Sortable(
'#cols-example .col1, #cols-example .col2, #cols-example .col3',
{
draggableOptions : {
handle : 'strong'
}
}
);发布于 2011-08-13 18:35:56
new glow.widgets.Sortable(
'#cols-example .col1, #cols-example .col2, #cols-example .col3',
{
draggableOptions : {
handle : 'strong'
}
}
);
new glow.widgets.Sortable(
'#A .maincat',
{
constrainDragTo : '#A',
axis : 'y',
onSort : function () {
// your code here
}
});上面的代码运行良好。将子div放在A中,如果我们给一个类,它只能在div中拖动
https://stackoverflow.com/questions/6888396
复制相似问题