.button {
background: transparent url("/assets/LoD-Button-Normal.png") no-repeat bottom right;
width: 110px;
height: 30px;
display: block;
background-position: bottom right;
text-align:center;
}
.button_click {
background: transparent url("/assets/LoD-Button-Click.png") no-repeat bottom right;
width: 110px;
height: 30px;
display: block;
background-position: bottom right;
}
$(".button").click(function(){
$(this).removeClass("button").addClass("button_click");
})
<a class="button" href="/link"> Button </a>
当我单击按钮时。它在 Firefox 上更改背景图像,但在 chrome 上不起作用。请帮我