실제로 무슨 일이 일어나고 있는지 잘 모르겠습니다. IE9에서는 작동하지 않습니다. 아마 IE9는 JavaScript를 제대로 처리하지 못합니까? 크롬, FF, 사파리, IE7에서 작품 (실제로이를 테스트 한)IE9 & jQuery : 목록 항목 정렬은 최신 브라우저와 IE7에서는 작동하지만 IE9에서는 작동하지 않습니다.
여기에 바이올린에 내 코드입니다 : http://jsfiddle.net/SMqR9/31/
하지 너무 복잡, 단지 중첩 된 분류가. 무슨 일 이니? IE9에서해야 할 특별한 것이 있습니까? 문제
자바 스크립트가 :
$j = jQuery.noConflict();
$j(function() {
// these parts are here due to a z-index bug with IE
$j('ul').bind('mousedown', function(e) {
e.stopPropagation();
if ($j.browser.msie && $j.browser.version < '9.0') $j(this).closest('.section').css('z-index', '5000');
});
if ($j.browser.msie && $j.browser.version < '9.0') {
$j('ul').bind('mouseup', function(e) {
$j(this).closest('.section').css('z-index', '1000');
});
}
// the actual sorting code/jqueryUI sorting
$j("#sort_content_41,#sort_content_40,#sort_content_42,#sort_content_39").sortable({
connectWith: '.section-content',
dropOnEmpty: true,
zIndex: 1004,
cursor: 'crosshair'
});
$j("#sort_sections").sortable({
placeholder: "ui-state-highlight",
connectWith: '.sections',
axis: 'y',
zIndex: 1003,
cursor: 'crosshair'
});
});
$j(function() {
$j("section-content").sortable({
connectWith: "section-content",
dropOnEmpty: true
});
$j(".section-content").disableSelection();
});
최신 릴리스로 jQuery를 업데이트하십시오. 덕분에 – duri
! 그것은 영원히 그렇게하기를 원했기 때문에 훌륭합니다 ... 그러나 항상 현실 세계에서 큰 변명을 할 수는 없습니다. = D – NullVoxPopuli
@ 도리, 답을 게시 할 수 있다면, 나는 당신에게 점수를 줄 수 있습니다. = D – NullVoxPopuli