我试图应用过渡属性,以便在图像在悬停时发生变化时产生效果,但似乎不起作用。请看看并帮助我。DIV的背景图像变化的CSS过渡
.ow-outer {
background-color: #fff;
width: 200px;
height: 200px;
border-radius: 50%;
border: 1px solid #fff;
text-align: center;
padding: 20px;
background-image: url(../images/team-canada-light.png);
background-size: 120px;
background-repeat: no-repeat;
background-position: center;
transition: all 0.3s ease-in-out;
}
.ow-outer:hover {
background-image: url(../images/team-canada.png);
}
代码中没有转换。告诉我们你试过的东西,不要指望我们为你写东西。 – junkfoodjunkie
as @junkfoodjunkie said,no code = no answers –
哦,是的!我的坏..更新... –