谁能知道为什么我的翻车会在悬停时弹出。我非常努力地修复,但真的吗?我正在使用 css .hover 函数,请参见下面的示例。任何建议或例子都会感谢我,谢谢炖
}
body {
background-color: grey;
background: url(http://wizzfree.com/pix/bg1.jpg) fixed;
background-size: 100% 100%;
background-repeat: no-repeat;
overflow: hidden;
margin: 0px;
font-family: Arial;
color: darkgrey;
font-size: 12px;
line-height: .3;
letter-spacing: .5px;
}
.call {
position: fixed;
top: 180px;
left: 50%;
width: 150px;
height:123px;
transform:translateX(-50%); /* center */
z-index: 3;
}
/*........ crossfade on buttons ........*/
.hover img{
transition:.3s;
position:absolute;
}
.nohover{
opacity:0;}
a:hover .hover{
opacity:0;
}
a:hover .nohover{
opacity:1;
}
.hover {
position: relative;
}
.hover img{
position: absolute;
}
<div class="call">
<a href="startchat.htm">
<img src="http://wizzfree.com/pix/call2.png" width="150" class="nohover">
<img src="http://wizzfree.com/pix/call3.png" width="150" class="hover"></a>
</div>