我希望背景图像在“点击”时淡出,这就是我现在得到的。它工作正常,但我希望图像在点击时淡入...
$(document).ready(function() {
//this represents window.load in javascript.
//now to select the element suppose you have anchor tag <a> with id=clickme
$("#test").click(function() {
//select the element whose background image you want to change. suppose with id=imgBack
$("body").css({'background-image':'url(url to image)'});
})
});