Why does Firefox rotate an element differently than Chrome/Safari?

我们两清 提交于 2020-01-14 05:30:16

问题


In the jsFiddle below why does Firefox rotate the container differently than Chrome or Safari?

http://jsfiddle.net/CRc9d/

Browser Version Info:

  • Firefox 7.0.1
  • Safari 5.1.1
  • Chrome 15.0.874.120

In Chrome and Safari the container rotates gradually whereas in Firefox the container rotates immediately.


回答1:


I'm not sure if this helps... I replaced

-moz-transition-property: rotate;
-moz-transition-duration: .17s;
-moz-transition-timing-function: linear;

with

-moz-transition: -moz-transform 0.17s linear;

And it works fine. Could be a syntax thing... I'm taking a look at the mozilla developer network to confirm.

Here's the working jsfiddle.



来源:https://stackoverflow.com/questions/8157400/why-does-firefox-rotate-an-element-differently-than-chrome-safari

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!