我想将鼠标悬停在十字形(.cross)上时将其不透明度更改为 0.9。将鼠标悬停在图像周围的 div 上时将不透明度更改为 0.3,但不会更改为 0.9
https://dl.dropboxusercontent.com/u/12598822/midori.html
.cross {
display: block;
width: 12px;
height: 12px;
top: 10px;
right: 10px;
background: url(close.svg);
position: absolute;
opacity: 0;
cursor: pointer;
}
div.shortcut .preview:hover > #crosshidden {
-webkit-transition-property: opacity;
-webkit-transition-duration: 150ms;
opacity: 0.3;
display: block;
}
.cross:hover > #crosshidden {
opacity: 0.9;
display: block;
}