使用animation编写简单的轮播图
效果展示:
1659525713375
代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
list-style: none;
}
/* 设置轮播图图片容器 */
div {
width: 400px;
height: 300px;
border: 1px solid;
margin: 50px auto;
overflow: hidden;
}
/* 设置轮播图容器 */