HTML5前端 广告的轮播效果 第一步
轮播效果图分两部分
1. css样式的设计
2. js实现图片的轮播
css样式:
<style type="text/css">
*{
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
text-decoration: none;
}
#banner{
height: 460px;
width: 1200px;
overflow: hidden;
border: 1px solid #999;
position: relative;
}
#imglist{
width: 1200px;
height: 460px;
}
#iconlist{
position: absolute;
right: 20px;
bottom: 10px;
}
#iconlist li{
width: 25px;
height: 25px;
line-height: 25px;
text-align: center;
float: left;
background-color: #999;
border-radius:13px ;
margin-left: 5px;
}
</style>
</head>
<body>
<div id="banner">
<div id="imgli