swiper修改分页器圆点颜色

style标签去掉scoped,

<script language="javascript">

        var mySwiper = new Swiper('.swiper',{

                pagination:{

                        el: '.swiper-pagination',

                        bulletActiveClass: 'my-bullet-active',

        }, })

</script>

<style type="text/css">

.my-bullet-active{ background: #ff6600; opacity: 1; }

</style>


版权声明:本文为haohaoxueqd原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。