正文 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/
下面的“摇一摇”效果可以,但是传输不起作用,如何解决?谢谢