Html 某些CSS3动画在firefox和IE中不起作用
我的一些动画可以工作,而另一些则不行。它们都是镀铬的。下面是一个不起作用的:Html 某些CSS3动画在firefox和IE中不起作用,html,css,firefox,Html,Css,Firefox,我的一些动画可以工作,而另一些则不行。它们都是镀铬的。下面是一个不起作用的: .orbit { position: absolute; height: 810px; width: 810px; top: 50px; left: 200px; border-radius: 8%; border:0px solid red; margin-left: -100px; margin-top: -100px; -webkit-animation-duration: 160s; -webkit-an
.orbit {
position: absolute;
height: 810px;
width: 810px;
top: 50px;
left: 200px;
border-radius: 8%;
border:0px solid red;
margin-left: -100px;
margin-top: -100px;
-webkit-animation-duration: 160s;
-webkit-animation-timing-function: linear;
-webkit-animation-delay: 0s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-name: spinleft;
-moz-animation-duration: 160s;
-moz-animation-timing-function: linear;
-moz-animation-delay: 0s;
-moz-animation-iteration-count: infinite;
-moz-animation-name: spinleft;
animation: spinleft 160s linear 0s infinite;
}
@-webkit-keyframes spinleft {
100% {
-webkit-transform: rotate(-360deg);
}
}
@-moz-keyframes spinleft {
100% {
-webkit-transform: rotate(-360deg);
}
}
@keyframes spinleft {
100% {
-webkit-transform: rotate(-360deg);
}
}
我尝试了一百万种动画布局组合,但都不起作用。奇怪的是,这些动画确实有效:
.charanimate{
-webkit-animation-delay: 0s;
-webkit-animation-duration: 3s;
-webkit-animation-name: appear;
-webkit-animation-fill-mode: forwards;
-moz-animation-delay: 0s;
-moz-animation-duration: 3s;
-moz-animation-name: appear;
-moz-animation-fill-mode: forwards;
animation-delay: 0s;
animation-duration: 3s;
animation-name: appear;
animation-fill-mode: forwards;
}
@-webkit-keyframes appear {
from {
left: -240px;
top: 465px;
}
70%{
left:50px;
}
to {
top:465px;
left: 35px;
}
}
@-moz-keyframes appear {
from {
left: -240px;
top: 465px;
}
70%{
left:50px;
}
to {
top:465px;
left: 35px;
}
}
@keyframes appear {
from {
left: -240px;
top: 465px;
}
70%{
left:50px;
}
to {
top:465px;
left: 35px;
}
}
可能将
-webkit-
前缀更改为-moz-
,如下所示:
@-moz-keyframes spinleft {
100% {
-webkit-transform: rotate(-360deg);
}
}
并删除此处的-webkit-
前缀,因此它是transform:rotate(-360度)代码>改为:
@keyframes spinleft {
100% {
-webkit-transform: rotate(-360deg);
}
}
可能将-webkit-
前缀更改为-moz-
,如下所示:
@-moz-keyframes spinleft {
100% {
-webkit-transform: rotate(-360deg);
}
}
并删除此处的-webkit-
前缀,因此它是transform:rotate(-360度)代码>改为:
@keyframes spinleft {
100% {
-webkit-transform: rotate(-360deg);
}
}
可能将-webkit-
前缀更改为-moz-
,如下所示:
@-moz-keyframes spinleft {
100% {
-webkit-transform: rotate(-360deg);
}
}
并删除此处的-webkit-
前缀,因此它是transform:rotate(-360度)代码>改为:
@keyframes spinleft {
100% {
-webkit-transform: rotate(-360deg);
}
}
可能将-webkit-
前缀更改为-moz-
,如下所示:
@-moz-keyframes spinleft {
100% {
-webkit-transform: rotate(-360deg);
}
}
并删除此处的-webkit-
前缀,因此它是transform:rotate(-360度)代码>改为:
@keyframes spinleft {
100% {
-webkit-transform: rotate(-360deg);
}
}
难道我不觉得自己是个十足的白痴吗!非常感谢你。我不觉得自己是个十足的白痴吗!非常感谢你。我不觉得自己是个十足的白痴吗!非常感谢你。我不觉得自己是个十足的白痴吗!非常感谢你。