【发布时间】:2021-09-16 18:02:22
【问题描述】:
虽然在 Edge 和 Chrome 上完美运行,但我的转换在 FireFox 上无法运行。
我尝试在 Google 上搜索此问题,但仍然无法解决。
这是我的代码:
.background{
width: 1280px;
height: 720px;
margin: 200px auto;
background-image: url(../img/hinh2.png);
-webkit-transition: background-image 1s ease-in-out;
-o-transition: background-image 1s ease-in-out;
-moz-transition: background-image 1s ease-in-out;
transition: background-image 1s ease-in-out;
background-size: contain;
}
.background:hover{
width: 1280px;
height: 720px;
margin: 200px auto;
background-image: url(../img/hinh1.png);
background-size: contain;
}
<div class="background"></div>
非常感谢您帮助我!
【问题讨论】:
-
Firefox 可能不支持。 stackoverflow.com/questions/9483364/…
-
这能回答你的问题吗? transition for background-image in firefox?
标签: html css firefox transition