本文の HTML コード:
<div style="background:yellow;width:500px;height:300px;">
<div id="div1" style="background:red; width:100px;height:100px; float:left;"></div>
<div id="div2" style="background:blue; width:50px;height:50px; float:right;"></div>
</div>
次にjsコード:
$(function () {
$("#div1").click(function () {
$(this).effect("transfer", { to: $("#div2") }, 1000);
//$(this).effect("shake", { times: 2 }, 200);
});
});
もちろん、私は
<script type="text/javascript" src="js/jquery-ui-1.8.5.custom.min.js"></script>
あなたは悪いオンラインを見ることができます: http://jsfiddle.net/hh54188/wz2J3/
以下の「シェイク」効果は機能する可能性がありますが、転送は機能しません。問題を解決するにはどうすればよいですか?ありがとう