* -transform:rotate在Firefox中工作,但不是chrome [英] *-transform: rotate works in Firefox but not chrome

查看:333
本文介绍了* -transform:rotate在Firefox中工作,但不是chrome的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CSS如下所示:

.rotate
{
    -webkit-transition: all .5s ease-in-out; 
    -moz-transition: all .5s ease-in-out; 
    -o-transition: all .5s ease-in-out; 
    -ms-transition: all .5s ease-in-out;
}
.rotate:hover
{
    -webkit-transform: rotate(90deg) scale(1); 
    -moz-transform: rotate(90deg) scale(1); 
    -o-transform: rotate(90deg) scale(1); 
    -ms-transform: rotate(90deg) scale(1); 
}

将鼠标悬停在< span class = > 将在Firefox中旋转元素,而不是chrome。

演示: http://jsfiddle.net/BuHGQ/ (将鼠标悬停在箭头上

Hovering over a <span class="rotate"> will rotate the element in Firefox but not chrome.
Demo: http://jsfiddle.net/BuHGQ/ (hover over the arrow)

推荐答案

p>尝试此操作:

.rotate { display: inline-block; }

http ://jsfiddle.net/y7nfD/1/

这篇关于* -transform:rotate在Firefox中工作,但不是chrome的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆