選單
×
×
正確!
練習為 <div> 元素新增一個 2 秒的動畫,將顏色從紅色變為藍色。將動畫命名為“example”。 <style> div { width: 100px; height: 100px; background-color: red; animation-name: @(7); @(18): 2s; } @keyframes example { from {@(16): red;} to {@(16): blue;} } </style> <body> <div>這是一個 div</div> </body>
<style> div { width: 100px; height: 100px; background-color: red; animation-name: example; animation-duration: 2s; } @keyframes example { from {background-color: red;} to {background-color: blue;} } </style> <body> <div>這是一個 div</div> </body>
<style> div { width: 100px; height: 100px; background-color: red; animation-name: example; animation-duration: 2s; } @keyframes example { from {background: red;} to {background: blue;} } </style> <body> <div>這是一個 div</div> </body>
不正確點選這裡 重新嘗試。 正確!下一個 ❯ |
這將重置所有 138 個練習的分數。
您確定要繼續嗎?