0
堆栈上有类似的线程,但我没有找到适合我的任何东西。jQuery在点击后淡出一个新的背景
我有一个身体背景,我想单击后更改。
$('#start').click(function(){
$(this).fadeOut('slow');
$('#help').fadeOut('slow');
$('#exit').fadeOut('slow');
setTimeout(function(){
$('body').css('background-image','url(media/note.jpg)');
},500);
});
所以,我想新的背景fadeIn
。我尝试过以任何可能的方式添加它,这是我可以想到的,但没有运气。
有没有办法做到这一点?
这是什么:http://stackoverflow.com/questions/977090/fading-in-a-background-image – bingjie2680 2012-07-14 11:28:13