请问为什么将鼠标移到原本看不见的img上,也能触发a的hover事件,使得img显示出来
.ctrl-i img
{
width: 100%;
position: absolute;
left: 0;
bottom: 50px;
-webkit-box-reflect: below 0 -webkit-gradient(
linear,
left top,
left bottom,
from(transparent),
color-stop(50%,transparent),
to(rgba(0,0,0,0.8))
);
opacity: 0;
-webkit-transition: all,0.3s;
}
.ctrl-i:hover
{
background-color: rgba(0,0,0,0.8 );
}
.ctrl-i:hover img
{
opacity: 1;
bottom: 13px;
}