active伪类解决
HTML代码
<div class=‘box‘> </div>
CSS代码
.box { width: 100px; height: 100px; background: green; transition: transform 0.3s ease-out; } .box:active { transform: scale(0.5) }
原文地址:https://www.cnblogs.com/helloyoyo/p/12375438.html
时间: 2024-11-05 20:42:55