-
CSS文件中: *{ padding:0px; margin:0px; } body{ background:#D5DEE7; } .boxgrid{ width: 720px; height: 701px; border: solid 2px #8399AF; } .boxgrid img.car{ position:absolute; top:0; left:720px; } js文件中: $(document).ready(function(){ $('.boxgrid').hover(function(){ $('.car').animate({left:'0px'},{duration:300}); }, function() { $('.car').animate({left:'720px'},{duration:300}); }); });查看全部
-
$(document).ready(function(){ $(".car") .hover (function(){ $(this).animate({top:'500px'},{duration:600});},function(){$(this).animate({top:'0px'},{duration:600});}); });查看全部
-
。。。。。。查看全部
-
抢车位动画jquery事件查看全部
-
dobe?查看全部
-
css属性position设置成absolute可以令元素浮动起来查看全部
-
完整代码查看全部
-
jquery查看全部
-
$(".car").click(function(){ $(this).animate({top:"500px"},{duration:600}); });查看全部
-
没有做出来查看全部
-
html+css+js查看全部
-
mark查看全部
-
hover查看全部
-
absolute相对最近的一个有position属性(通常是relative)的元素进行定位。查看全部
-
开头太长了查看全部
举报
0/150
提交
取消