所以,我试图在将光标悬停在其上时将图像更改为不透明。问题是改变不透明度根本不起作用。悬停时不透明不起作用
下面是代码CSS
.jarleby {
z-index: 10001;
position: fixed;
left: 43%;
top: 60%;
margin-left: -45px;
margin-top: -56px;
animation-delay: 0.3s;
opacity: 0.5;
filter: alpha(opacity=50); /* For IE8 and earlier */
}
.jarleby:hover {
opacity: 1.0;
filter: alpha(opacity=100); /* For IE8 and earlier */
}
HTML
<div class="jarleby animated fadeInUp">
<a href="https://steamcommunity.com/profiles/76561198345955002" target="_blank"><img src="img/steam.png"></img> </a>
</div>
别的东西正在采取优先。使用!重要或排除你的规则 – Michael
请'动画'代码 – AvrilAlejandro
您的代码有效。 https://codepen.io/anon/pen/YVvwzG一定要给我们一个实际上复制你的问题的[mcve],否则我们所能做的只是猜测。 –