div { width:600px; height:600px; background-color:#C1C1C1; text-align:center; margin:0 auto; } canvas { margin-top:100px; animation:xz 2s infinite linear; } @keyframes xz { 0% { transform:rotate(0deg); } 100% { transform:rotate(360deg); } }
牛刀小试,献丑献丑~