【发布时间】:2021-01-18 22:08:08
【问题描述】:
好的,所以,我编写了一个代码,我正在寻找一个图像,永远旋转并且它可以工作,但只有在 Firefox 中,它在 chrome 中不起作用,有人可以帮忙吗?
代码:
<div align="left" class="header">
<img src="http://files.enjin.com/177852/SD/PortalHeaderContinuous1.png" class="header2" style="position:fixed; z-index:50; margin-left:-120px; margin-top:20px;">
</div>
<style>
.header2{
animation: rotate 5s linear 0s infinite;
-webkit-animation: rotate 1s linear 0s infinite;
}
@keyframes rotate
{
0% {}
100% {-webkit-transform: rotate(-360deg);
-moz-transform: rotate(-360deg);
transform: rotate(-360deg);}
}
</style>
【问题讨论】:
标签: css google-chrome firefox