html - webkit-animation-play-state 不适用于 chrome

标签 html css

昨天我写了关于旋转圆圈的堆栈问题。我得到了解决方案答案,但我想重写用于处理 :hover 的代码。这是主要问题。它在 chrome 上不工作,但在 mozilla 下工作完美。(不工作我的意思是它一直在旋转。我需要它在悬停时旋转)

代码:

HTML

<div class="loading">
    <div class="circle-small"></div>
    <div class="circle-medium"></div>
    <div class="circle-big"></div>
</div>

CSS http://jsfiddle.net/EPy52/3/

最佳答案

您应该在调用animation 本身之后调用animation-play-state,否则规则似乎被覆盖了。

稍后在工作表中调用它会看到规则起作用。

http://jsfiddle.net/EPy52/5/

关于html - webkit-animation-play-state 不适用于 chrome,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23095462/

相关文章:

html - 如何在我的页面中完善超大屏幕图像

javascript - 页面加载后更改 A 类的 CSS

jquery - 想要使用绑定(bind)和取消绑定(bind)。我希望能够在选择单选按钮后将鼠标悬停在其他行上

html - 谷歌地图占据整个高度

javascript - 使用 jquery 从 html 表中选择第二行

Android webview 不在同一页面中播放 mp4 视频

javascript - 如何在 JavaScript 中修复 "Uncaught TypeError: action.addEventListener is not a function"

javascript - 如何禁用 :hover when scrolling on mobile?

html - 无法将 Bootstrap 容器彼此对齐

向下滚动时 JavaScript 菜单隐藏,停止时出现