【问题标题】:The CSS transforms that I used don't work in mozilla Firefox我使用的 CSS 转换在 mozilla Firefox 中不起作用
【发布时间】:2015-06-07 13:27:13
【问题描述】:

我的动画不能在 mozilla 中运行,但它们在 chrome 中运行。请提出一些更改建议,以便它在

中起作用
a {
    transition: all 0.5s ease-in-out 0s;
}

a:hover {
    transform:rotate(360deg) ;
    -moz-transform:rotate(360deg);  
    -webkit-transform:rotate(360deg);
    cursor:pointer;
}

【问题讨论】:

  • 如果您的问题得到解答,请单击答案左侧的复选标记。

标签: css css-transforms vendor-prefix


【解决方案1】:

添加

display: inline-block;

到您的链接样式。

Firefox 似乎拒绝转换内联元素

查看演示:

http://codepen.io/anon/pen/RPVVXM

【讨论】:

    猜你喜欢
    • 2014-05-19
    • 1970-01-01
    • 2014-11-04
    • 2015-05-11
    • 2015-08-12
    • 2021-04-28
    • 1970-01-01
    • 1970-01-01
    • 2014-10-07
    相关资源
    最近更新 更多