2010-11-23 3 views

답변

6

, 그래서 그냥 옵션을 떠나, 또는 'original'로 설정하고 사본을 만드는 'clone'에 반대 ... 원본을 잡아 것, 기본 정확하게 당신이 원하는 것을 할 것입니다 'original'입니다 . 그것은 다음과 같아야합니다

$(".element").draggable(function() { 
    helper: 'original' //or leave this line off 
}); 

You can test it in the default demo here합니다.

1

또한 복제를 사용할 수 있습니다

pnlText.draggable({ 
    helper: "clone", 
    stop: function(event, ui) { 
     $(this).css("top",ui.position.top).css("left",ui.position.left); 
    } 
}); 

이 원래는 마우스가 이동을 할 수있는 클론의 위치에 나타납니다.