http://www.elitedeafpoker.com/dev/で、「手の強さ」の下にリストの9つの順序付けられたアイコン (1、2、3、4、...) を表示しようとしています。現在、#1 アイコンのみを表示するように設定していますが、リンクが CSS (おそらく CSS3?) でホバーされているときに、各リストに 9 個のアイコンを表示する最良の方法がわかりませんでした。
HTML
<div class="div-list">
<h2 style="width:250px;">HAND STRENGTH</h2>
<ul class="list">
<li><a href="#">ROYAL FLUSH</a></li>
<li><a href="#">STRAIGHT FLUSH</a></li>
<li><a href="#">FOUR OF A KIND</a></li>
<li><a href="#">FLUSH</a></li>
<li><a href="#">STRAIGHT</a></li>
<li><a href="#">THREE OF A KIND</a></li>
<li><a href="#">TWO-PAIR</a></li>
<li><a href="#">ONE-PAIR</a></li>
<li><a href="#">HIGH-CARD</a></li>
</ul>
</div>
CSS
.list {
list-style:none
overflow: hidden;
width:250px;
margin: 0px 0px 50px 0px;
}
.list a {
display: block;
margin-left:20px;
}
.list li:hover {
background:url(../img/handstreng.icon1.png) 0px -14px no-repeat;
}
.list li {
list-style:none;
background:url(../img/handstreng.icon1.png) 0px 4px no-repeat;
display: block;
overflow: hidden;
font-size: 14px;
line-height: 20px;
text-transform: uppercase;
}
.list li a {
color: #ffffff;
}
.list li a:hover {
color: #ff670d;
}
他のアイコン ファイルは、handstreng.icon2.png、handstreng.icon3.png などです...
ありがとう!