を書くことができますので、あなたがこのような何かを行うことができます:ライブたとえば
// 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/あなたはより多くの情報が必要なら、私に教えてください。私はこれが役立つことを願っています
有効なCSSルールを設定するためにJavaScriptを使用する理由 – MatTheCat
ポスターがドラッグ可能な要素について述べているので、ドラッグ可能なjQueryを使用している場合は、これを補完することになります。しかし、私はあなたに同意します...これはあなたが投稿したときにCSSで行うことができます。 – Hristo
あなたはそうだと思っています^^ ' – MatTheCat