首页 > Web开发 > 详细

css 绝对定位实现一个轮播效果

时间:2014-04-09 20:57:41      阅读:836      评论:0      收藏:0      [点我收藏+]

结果:bubuko.com,布布扣

css:

<style type="text/css">
div, ul, ol {
margin: 0;
padding: 0;
}
.box {
position: relative;
overflow: hidden;
height: 488px;
}
li {
list-style: none;
cursor: pointer;
}
ol {
position: absolute;
left: 50%;
bottom: 0;
margin-left: -412px;
width: 88px;
height: 42px;
}
ol li {
float: left;
width: 44px;
height: 42px;
}
</style>

html:

<div class="box">
<ul>
<li><img src="images/banner_img01.jpg" /></li>
</ul>
<ol>
<li title="上一张"></li>
<li title="下一张"></li>
</ol>
</div>

原图:bubuko.com,布布扣

css 绝对定位实现一个轮播效果,布布扣,bubuko.com

css 绝对定位实现一个轮播效果

原文:http://www.cnblogs.com/fangdx/p/3653535.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!