私の3つのボタンは互いに下にありますが、ブラウザの画像にカーソルを合わせると、下のボタンが消えます。上から通常ボタン、ホバリング、ボタン選択時のボタンです。私のボタンをこれに似たものにするのを手伝ってくれる人はいますか?私はこのコードを使用しましたが、まだ機能しません。ありがとうございます!:D http://www.icondeposit.com/blog:custom-css-button-sprite
ボタン: https://www.dropbox.com/s/j9ecwlgqu8d5508/button-2.png
ここに私のcssコードがあります、
.GoogleMarker {
width: 1086px;
height: 1118px;
background: transparent url(button-2.png) 0 0px no-repeat; /* When not hovered over */
}
.GoogleMarker:hover {
width: 1086px;
height: 1118px;
background: transparent url(button-2.png) 0 -503px no-repeat; /* When hovered over */
}
.GoogleMarker:active {
width: 1086px;
height: 1118px;
background: transparent url(button-2.png) 0 -1004px no-repeat; /* When you press down on the icon or the icon is activated (clicked on) */
}