私のウェブサイトでは、アクティブなdivボックスを使用しているときに、側面のドットを変更したいと思います。ホバーは正常に機能しますが、アクティブを機能させることができません。画像をホバーしようとすると、画像のパスは正常に機能します。
#nav{
z-index: 5;
position: fixed;
top: 50%;
right: 20px;
}
#nav li {
position: relative;
height: 20px;
width: 20px;
margin-bottom: 15px;
}
#nav li a {
display: block;
width: 20px;
height: 20px;
text-indent: -9999px;
background: transparent url('images/dot.png') no-repeat;
opacity: 0.80;
}
#nav li a:hover {
opacity: 1;
}
#nav li a:active {
background: transparent url('images/dotactive.png') no-repeat;
}