<!DOCTYPE html><html lang="en"><head> ?<meta charset="UTF-8"> ?<title>Document</title> ?<style> ?.box { ???width: 100px; ???height: 100px; ???background: green; ???animation: rotate 4s linear infinite; ?} ?@keyframes rotate { ???0% { ?????transform: rotate(0deg); ???} ???100% { ?????transform: rotate(360deg); ???} ?} ?</style></head><body> ?<div class="box"></div></body></html>
css旋转效果
原文地址:https://www.cnblogs.com/yesyes/p/8425563.html