我有一个span元素:jQuery的淡入淡出效果,
<span id="signInResult" style="border: 1px solid white;">html in here</span>
当jQuery的AJAX成功火灾,我想跨度立即变绿,然后渐退到默认的白色:
success: function(msg){
$("#signInResult").css('border-style', 'solid');
$("#signInResult").css('border-color', 'green');
$("#signInResult").fadeIn(300).css('border-color', 'white').fadeIn(300);
}
我已经尝试了一些fadeIn和fadeOut的变化..上面的当前版本似乎没有做任何事情....最好的方式来做到这一点,以获得欲望的结果?谢谢
这就是金!谢谢。小的语法点共同应该是冒号:{'border-color':'#fff'}谢谢! – mandalorianwarrior
请注意(除非你包含[jQueryUI](http://jqueryui.com/)(或其他颜色插件),否则'.animate()'不适用于颜色。 。 – nnnnnn
好的谢谢你的提示。我有jqUI CDN ..洛杉矶的代码已经过测试,它的工作原理。谢谢 – mandalorianwarrior