我有手風琴可摺疊排序。使摺疊式摺疊式可摺疊手風琴排序
看吧完整的代碼在行動http://jsfiddle.net/wvtPw/
這JS代碼我使用
$("#accordion")
.accordion({
header: "> div > h3",
collapsible: true
})
.sortable({
handle: "h3",
placeholder: "ui-state-highlight",
stop: function(event, ui) {
// IE doesn't register the blur when sorting
// so trigger focusout handlers to remove .ui-state-focus
ui.item.children("h3").triggerHandler("focusout");
}
});
當我試圖擴大DIV組排序的唯一的問題是大,很難排序,當它的第一個div和你拖動它,你不能看到它下面,因爲如果高度尺寸
見下面這個圖片就是例子倒塌的div,看看多麼容易使用,你可以很容易地看到它下面。
所以我需要達到是當用戶試圖理清擴大DIV,飛行DIV變成摺疊形狀像這樣
而當他放棄元素只是回頭擴大像正常
我以前試過這個方法,但問題是當你拖動摺疊的div展開的一個摺疊,當你放棄div它不再擴展。 – Jim