【发布时间】:2017-01-31 10:07:03
【问题描述】:
我试图得到这段代码的反效果 (jsfiddle-demo):
a.darken {
display: inline-block;
background: black;
padding: 0;
}
a.darken img {
display: block;
-webkit-transition: all 0.5s linear;
-moz-transition: all 0.5s linear;
-ms-transition: all 0.5s linear;
-o-transition: all 0.5s linear;
transition: all 0.5s linear;
}
a.darken:hover img {
opacity: 0.7;
}
div.hoverText{display = none;}
我的意思是,我想要一个 html 代码,其中的图像变暗,并且在“鼠标悬停”时变暗消失 - 带有过渡。
【问题讨论】:
标签: javascript css hover fadeout mouseout