.test{ 150px; height: 150px; background: yellowgreen; transform: rotate(0deg); transition: transform 1.5s; } .test:hover{ transform: rotate(360deg); } html: <div class="test"> 这是测试! </div>
.test{ 150px; height: 150px; background: yellowgreen; transform: rotate(0deg); transition: transform 1.5s; } .test:hover{ transform: rotate(360deg); } html: <div class="test"> 这是测试! </div>