을 쓸 수 있다면, 당신이 뭔가를 할 수 있습니다 :
라이브 예를 들어
// define a hover event so that when you hover over and out of the dragable element
// the cursor changes accordingly
$('#element').hover(function(){
$(this).css('cursor','move');
} , function(){
$(this).css('cursor','default');
});
// this cursor property is only supported in mozilla, but here you can insert
// an image as other posters have specified
// this event changes the cursor when you click the dragable element
$('#element').mousedown(function(){
$(this).css('cursor','-moz-grabbing');
});
// this event changes the cursor back to the default type after you let go
// of the dragable element
$('#element').mouseup(function() {
$(this).css('cursor','default');
});
이 체크 아웃 : http://jsfiddle.net/EaEe3/ 좀 더 자세한 정보가 필요하면 알려주세요. 이게 도움이 되길 바란다.
JavaScript를 사용하여 유효한 CSS 규칙을 설정하는 이유는 무엇입니까? – MatTheCat
포스터는 드래그 가능한 요소에 대해 언급 했으므로 jQuery를 드래그 가능으로 사용하는 경우이를 잘 보완 할 수 있습니다. 그러나 나는 당신과 동의합니다 ... 이것은 당신이 게시 한 CSS로 할 수 있습니다. – Hristo
네 말이 맞아. 나는 그걸 기대하지 않았다. ^^ ' – MatTheCat