84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
假设给一个p添加了一个@keyframes动画,这个动画控制p的transform属性,当hover这个p时停止这个动画,同时给p添加transform属性,此时transform属性不生效!!!甚至用JS给这个p绑定onmouseover事件改变transform都不生效,这是为什么???
业精于勤,荒于嬉;行成于思,毁于随。
可将 animation-fill-mode 设置为 backward 或 none 试试
animation-fill-mode
backward
none
是不是设置animation的css选择器优先级比 hover连带的选择器优先级高? 比如animation设置的样式是用ID选择器,hover时候是用.class:hover
把你代码贴上来看看
可将
animation-fill-mode
设置为backward
或none
试试是不是设置animation的css选择器优先级比 hover连带的选择器优先级高? 比如animation设置的样式是用ID选择器,hover时候是用.class:hover
把你代码贴上来看看