我想更改我的 <Li>
bgImage onMouseOver 使用 jQuery
但是图片在三个div标签中
最佳答案
像这样:
$('li').mouseover(
function(){
$(this).css('background-image', 'url(hover.png) no-repeat top left');
},
function(){
$(this).css('background-image', 'url(normal.png) no-repeat top left');
}
);
关于jquery - 如何更改列表项的背景图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/649737/