【发布时间】:2017-10-11 19:43:17
【问题描述】:
我在玩带有 CSS3 过渡的图像交换悬停效果。不幸的是,它只适用于 Chrome。我已经看到了很多来自 CSS3 过渡的例子,它们在 Chrome、Firefox 和 Safari 中都能完美运行,但这次不是...... :( 问题出在哪里?
.logo {
float: left;
z-index: 1;
width: 325px;
height: 73px;
background: url(../img/logo.png) no-repeat;
position: absolute;
-moz-transition: all .4s ease;
-webkit-transition: all .4s ease;
-ms-transition: all .4s ease;
-o-transition: all .4s ease;
transition: all .4s ease;
}
.logo:hover {
z-index: 2;
opacity: 1;
background: url(../img/logo1.png) no-repeat;
}
干杯!
【问题讨论】:
标签: css css-transitions browser-support