【发布时间】:2012-05-08 11:36:44
【问题描述】:
我有一个缩放动画,它在 IE10 中运行了大约一天,然后就停止了。我没有做任何改变,也不确定会发生什么破坏它。
有人有什么想法吗?当我查看 IE 开发工具时,它并没有选择动画名称,而是选择了所有其他属性。
这是 CSS:
@-ms-keyframes move97
{
0% {
transform:scale(1,1);
-ms-transform:scale(1,1);
-moz-transform:scale(1,1);
-webkit-transform:scale(1,1);
-o-transform:scale(1,1);
}
50% {
transform:scale(0.97,0.97);
-ms-transform:scale(0.97,0.97);
-moz-transform:scale(0.97,0.97);
-webkit-transform:scale(0.97,0.97);
-o-transform:scale(0.97,0.97);
}
100% {
transform:scale(1,1);
-ms-transform:scale(1,1);
-moz-transform:scale(1,1);
-webkit-transform:scale(1,1);
-o-transform:scale(1,1);
}
}
.press97
{
-ms-animation-name: move97 0.2s; /* note MS has this different.... ugh */
animation: move97 0.2s;
-moz-animation: move97 0.2s; /* Firefox */
-webkit-animation: move97 0.2s; /* Safari and Chrome */
animation-timing-function: linear;
-moz-animation-timing-function: linear;
-webkit-animation-timing-function: linear;
-ms-animation-timing-function: linear;
animation-fill-mode: forwards;
-webkit-animation-fill-mode: forwards;
-moz-animation-fill-mode: forwards;
-ms-animation-fill-mode: forwards;
}
【问题讨论】:
-
我可以问一下为什么您在
@-ms-keyframes块内使用非 IE 供应商扩展,而这显然只能由 IE 读取? -
我在样式表中复制和粘贴,并没有费心整理。
-
您还应该始终按照不带前缀的标准结束您的财产清单。
标签: animation css internet-explorer-10