私人领地

Swiper基本上使用

导入三个文件

jquery-1.11.1.min.js,swiper.min.js,swiper.min.css

 

攻略教程

http://www.swiper.com.cn/api/function/2014/1218/111.html

 

例子:只需要定义下Ban的高度即可,position:relatival   ,这个可以不用定义

#Ban{height: 398px}

 

<div class="swiper-container" id="Ban">
<div class="swiper-wrapper">
<div class="swiper-slide bg-01">slider1</div>
<div class="swiper-slide bg-02">slider2</div>
<div class="swiper-slide bg-03">slider9999</div>
</div>
</div>

<script>
var mySwiper = new Swiper('#Ban',{
autoplay : 1000,

})
</script>

posted @ 2015-07-20 17:33  狂奔的蜗牛Snails  阅读(227)  评论(0编辑  收藏  举报