Menu
×
×
正确
<style>
div {
width: 100px;
height: 100px;
position: relative;
background-color: red;
animation-name: example;
animation-duration: 2s;
@(15): @(2);
}
@keyframes example {
0% {background-color: red; left:0px;}
50% {background-color: yellow; left:200px;}
100% {background-color: red; left:0px;}
}
</style>
<body>
<div>This is a div</div>
</body>
<style>
div {
width: 100px;
height: 100px;
position: relative;
background-color: red;
animation-name: example;
animation-duration: 2s;
animation-delay: 1s;
}
@keyframes example {
0% {background-color: red; left:0px;}
50% {background-color: yellow; left:200px;}
100% {background-color: red; left:0px;}
}
</style>
<body>
<div>This is a div</div>
</body>
不正确
点击 此处 重试 正确
下一题 ❯<style> div { width: 100px; height: 100px; position: relative; background-color: red; animation-name: example; animation-duration: 2s;w3exercise_input_no_0:w3exercise_input_no_1; } @keyframes example { 0% {background-color: red; left:0px;} 50% {background-color: yellow; left:200px;} 100% {background-color: red; left:0px;} } </style> <body> <div>This is a div</div> </body> |