支付宝(淘宝)banner轮播图效果
栏目分类:
焦点图 发布日期:2014-08-09 来源:
互联网 浏览次数:
次
支付宝(淘宝)banner
轮播图效果
文件代码
- <div style="height:80px;overflow:hidden;">div>
-
- <div class="flexslider">
- <ul class="slides">
- <li style="background:url(images/img1.jpg) 50% 0 no-repeat;">li>
- <li style="background:url(images/img2.jpg) 50% 0 no-repeat;">li>
- <li style="background:url(images/img3.jpg) 50% 0 no-repeat;">li>
- <li style="background:url(images/img4.jpg) 50% 0 no-repeat;">li>
- <li style="background:url(images/img5.jpg) 50% 0 no-repeat;">li>
- ul>
- div>
-
-
-
- <script type="text/javascript" src="js/jquery-1.7.2.min.js">script>
- <script type="text/javascript" src="js/jquery.flexslider-min.js">script>
- <script type="text/javascript">
- $(document).ready(function(){
- $('.flexslider').flexslider({
- directionNav: true,
- pauseOnAction: false
- });
- });
- script>
css样式
- *{margin:0;padding:0;list-style-type:none;}
- a,img{border:0;}
- body{font:12px/180% Arial, Helvetica, sans-serif, "新宋体";}
-
-
- .flexslider{position:relative;height:400px;overflow:hidden;background:url(images/loading.gif) 50% no-repeat;}
- .slides{position:relative;z-index:1;}
- .slides li{height:400px;}
- .flex-control-nav{position:absolute;bottom:10px;z-index:2;width:100%;text-align:center;}
- .flex-control-nav li{display:inline-block;width:14px;height:14px;margin:0 5px;*display:inline;zoom:1;}
- .flex-control-nav a{display:inline-block;width:14px;height:14px;line-height:40px;overflow:hidden;background:url(images/dot.png) right 0 no-repeat;cursor:pointer;}
- .flex-control-nav .flex-active{background-position:0 0;}
-
- .flex-direction-nav{position:absolute;z-index:3;width:100%;top:45%;}
- .flex-direction-nav li a{display:block;width:50px;height:50px;overflow:hidden;cursor:pointer;position:absolute;}
- .flex-direction-nav li a.flex-prev{left:40px;background:url(images/prev.png) center center no-repeat;}
- .flex-direction-nav li a.flex-next{right:40px;background:url(images/next.png) center center no-repeat;}