html 和css部分
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>轮播图</title>
<style type="text/css">
*{
margin: 0; padding: 0; list-style: none;}
#banner{width: 1920px; height: 500px; overflow: hidden; position: relative;}
#imglist{width: 7980px; height: 500px;}
#imglist li{float: left;}
#imglist img{width: 100%; height: 100%;}
#buttons{width: 100%;top: 50%; position: absolute; cursor: pointer;}
#buttons span{font-size: 35px; font-weight: bold;}
#buttons #left{left: 10%; position: absolute;}
#buttons #right{right: 10%; position: absolute;}
#iconlist{left: 45%; bottom: 1%; position: absolute; cursor: pointer;}
#iconlist li{width:30px; height: 30px; float: left; border: 1px solid black; text-align: center; line-height: 30px; margin-left: 10px; border-radius: 18px;}
</style>
</head>
<body>
<div id="banner">
<ul id="imglist">
<li><img src=".\img\banner1.jpg" alt="banner1"></li>
<li><img src=".\img\banner2.jpg" alt="banner2"></li>
<li><img src=".\img\banner3.jpg" alt="banner3"></li>
<li><img src=".\img\banner1.jpg" alt="banner1"></li>
</ul>
<ul id="buttons">
<li id="left">