$("#bd_wrap").animate({backgroundPosition:'-1024px 0'},1000).css();我想在1000的时间过后再执行css方法。有人懂吗谢谢!
1 回答

茅侃侃
TA贡献1842条经验 获得超21个赞
jQuery的动画函数.animte(属性, 执行时间, 动画方式, 回调函数)
使用回调函数,在动画函数结束后会被执行的函数
$("#bd_wrap").animate({backgroundPosition:'-1024px 0'},1000, function() {
//回调函数内容
});
- 1 回答
- 0 关注
- 1101 浏览
添加回答
举报
0/150
提交
取消