如何在悬停时保持 div 的扩展(而不是一旦悬停它执行一次并再次变小)在我的情况下,悬停使框变大并保持不变,mouseout 然后将其变小..
这是我的代码:
.box{width:30px; height:30px; border-radius:100%; margin:200px auto; background:lightblue;}
.box:hover{-webkit-animation:boxes 2s;}
@-webkit-keyframes boxes{
from{width:30px;heigh:30px;}
to{width:200px;height:200px;}
}