【发布时间】:2014-12-23 12:13:07
【问题描述】:
以下代码在 safari 中呈现一个完美的旋转圆圈,但在 chrome 中没有。
<style>
.circle{
height:1000px;
width:1000px;
background-color:#000;
border-radius: 50%;
}
@-webkit-keyframes rotating {
from{
-webkit-transform: rotate(0deg);
}
to{
-webkit-transform: rotate(360deg);
}
}
.rotating {
-webkit-animation: rotating 2s linear infinite;
-webkit-transform-origin: center;
}
</style>
<div class="circle rotating">
</div>
渲染不完美,旋转大圆圈时可以看到问题,就像 chrome 上的摆动圆圈。
谢谢你的帮助。
【问题讨论】:
-
那么问题是什么,不是旋转?不是完美的圆?
-
你的小提琴在 Chrome 中对我有用。
-
@AndréDion 对我来说,它呈现了一个“摆动”的圆圈(chrome 39 wind 7)
-
stackoverflow.com/questions/24070899/… 有一个已解决的重复问题,建议似乎是使用图像..
-
@ensixte 如果它用于相同元素的溢出内容,为什么不移除外部阴影并将
overflow:hidden设置为它? jsfiddle.net/L2r6tjq8/2
标签: css google-chrome transform