做了css3动画后,没有反应
1条回答 默认 最新
- CSDN专家-showbo 2021-12-01 21:52关注
不要有空格hover样式li:first-child img:hover
<style> @keyframes anima{ from{transform:rotate(0deg)} to{transform:rotate(360deg)} } li:first-child img:hover{ animation-name:anima; animation-duration:10s; animation-iteration-count:infinite } </style> <ul> <li> <img src="https://img1.baidu.com/it/u=2897436077,1965736138&fm=26&fmt=auto" /> </li> </ul>
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 1无用