【发布时间】:2023-04-05 08:31:01
【问题描述】:
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="rotate"> 上会旋转 Firefox 中的元素,但不会旋转 chrome。
演示:http://jsfiddle.net/BuHGQ/(将鼠标悬停在箭头上)
如何才能让它在 Chrome 中运行?
【问题讨论】:
标签: css cross-browser