【发布时间】:2016-01-09 14:57:37
【问题描述】:
我在这样的按钮悬停时查看背景图像:
$(function() {
$('#a').hover(function() {
$('.conte`enter code here`nitoreindex').css('background', 'url(immagini/img1.jpg) no-repeat center center');
}, function() {
// on mouseout, reset the background colour
$('.contenitoreindex').css('background', '');
});
});
有没有办法用缓慢的淡入淡出为第二个元素着色? 谢谢!
【问题讨论】:
标签: css image background hover fade