如何在聚合物中使用Swiper?

时间:2017-08-31 02:56:35

标签: plugins polymer swiper

<link rel="stylesheet" href="../swiper/swiper-3.4.2.min.css">
<script src="../swiper/swiper-3.4.2.min.js"></script>

 <div class="swiper-container">
    <div class="swiper-wrapper">
        <div class="swiper-slide aa">Slide 1</div>
        <div class="swiper-slide">Slide 2</div>
        <div class="swiper-slide">Slide 3</div>
    </div>

    <div class="swiper-pagination"></div>
</div>

它不起作用。

1 个答案:

答案 0 :(得分:0)

你可以使用为聚合物制作的this组件,它包裹着Swiper.js