滚动式 轮播图 详解
很多网页上都有轮播图来展示商品或公司的主要特色,但是这是如何实现的呢?
工作急需要用,拿过来改下就好了哦
实例告诉你:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>轮播图</title>
<!-- 设置css样式 -->
<style>
*{
margin:0;
padding:0;
list-style:none;
text-decoration:none;
}
#banner{
width:900px;
height:500px;
overflow:hidden;
margin:25px auto;
position:relative;
border:1px solid black;
}
#imglist{
width:5400px;
height:500px;
}
#imglist li{
width:900px;
height:500px;
diasplay:none;
float:left;
}
#imglist img{
width:100%;
/*display:none;*/
}
#iconlist{
position:absolute;
right:20px;
bottom:10px;
}
#iconlist li{
border:1px solid black;
width:25px;
height:25px;
line-height:25px;
text-align:center;
border-radius:15px