2

In my css I am using different image for hover state button but when I hover over the image, there is no change. Can you help find the fix?

.button {
background-image:url('/images/search.png');
width:73px;
height:23px;
background-repeat:no-repeat;
cursor:pointer;
border:none;
}

.button:hover {
background-image:url('/images/search_active.png');
background-repeat:no-repeat;
cursor:pointer;
border:none;
}
4

1 回答 1

1

确保您的图片位于“./images/search_active.png”中并且路径正确。

于 2013-04-21T01:59:21.997 回答