我正在尝试在动画中调整 Flash 对象的大小(并最终移动它,但首先要移动它),但它似乎根本不起作用。
如果我只更改 Jquery 中的 css 属性,它就可以工作。
不工作的动画:
$('#greenbtn').hover(function(){
$(this).animate({width: '242px', height: '63px'}, 'fast', 'easeOutSine');
console.log('here1');
});
$('#greenbtn').mouseleave(function(){
$(this).animate({width: '228px', height: '57px'}, 'fast', 'easeOutSine');
console.log('here2');
});
在职的:
$('div.leftB').hover(function(){
$('#greenbtn').css({width: '242px', height: '63px'});
});
$('div.leftB').mouseleave(function(){
$('#greenbtn').css({width: '228px', height: '57px'});
});
.animate() 根本无法在 Flash 上运行,还是我的代码有问题?
谢谢你的帮助!