html - CSS 动画在 Firefox 关键帧中不起作用

标签 html css keyframe

<html>
<head>
<title>CHK</title>
<style>
@keyframes a1
{
00% {background-color:red;}
20% {background-image:url(1.jpg);}
50% {background-color:orange;}
70% {background-color:silver;}
98% {background-color:blue;}
100% {background-color:red;}
}
#ida
{
width:200px;
height:200px;
animation-name:a1;
animation-duration:8s;
animation-iteration-count: infinite;
}
</style>
</head>
<body>
<div id="ida">
</div>
</body>
</html>

我正在使用关键帧这在 chrome 中工作正常但在 firefox 中我使用的图像没有显示 idk 是什么原因....请看一下 thx..

最佳答案

关于html - CSS 动画在 Firefox 关键帧中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31970325/

相关文章:

html - 关键帧动画上不需要的粘性背景图像

javascript - 如何使用 jquery 通过按钮上下移动多选中的选定选项?

css - 文本缩进 - IE7

css - html 5 星评级 css

css - 是否可以通过在 CSS 中单击图像来将其设为 "bring up"?

设置在 :hover won't stop on mobile touch 上的 CSS 关键帧动画

CSS3 动画关键帧

jquery - 由于加载字体,菜单分成两行

javascript - 仅在较小的屏幕上显示图像

html - 在 CSS 中定义图像,而不是在 HTML 中