CSS实现轮播图
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title></title>
<style type="text/css">
#one{
position:absolute;
width:300px;
height:200px;
overflow:hidden;
border-radius:5px;
}
#three{
position:absolute;
left:-50px;top:-10px;
opacity:.5;
}
#three li{
display:inline-block;
width:200px;
height:20px;
margin:0 50px;
float:left;
text-align:center;
color:#fff;
border-radius:10px;
background:#000;
}
#two img{
float:left;
width:300px;
height:200px;
}
#two {
position: absolute;
z-index:9;
width: calc(300px * 4);/*---修改图片数量的话需要修改下面的动画参数*/
}
.play{
animation: ma 5s