【发布时间】:2011-12-12 06:31:00
【问题描述】:
在旋转动画中,适用于 Chrome,但不适用于 Firefox。为什么?
@-moz-keyframes rotate {
from { -moz-transform: rotate(0deg); }
to { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes rotate {
from { -webkit-transform: rotate(0deg); }
to { -webkit-transform: rotate(360deg); }
}
#example {
background: red;
width: 100px;
height: 100px;
-moz-animation: rotate 20s linear 0 infinite;
-webkit-animation: rotate 20s linear 0 infinite;
}
【问题讨论】:
-
您能指定您的浏览器版本吗?
标签: html css css-animations