wx小程序修改swiper 点的样式
Posted MvloveYouForever
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了wx小程序修改swiper 点的样式相关的知识,希望对你有一定的参考价值。
<swiper class="swiper-box" indicator-dots="{{ indicatordots }}" autoplay="{{ autoplay }}"> <block wx:for="{{ swiperItem }}"> <swiper-item> <navigator url="{{ item.linkUrl }}"> <image class="slide-image" src="{{ item.imgUrl }}"></image> </navigator> </swiper-item> </block> </swiper>
.swiper-box .wx-swiper-dots.wx-swiper-dots-horizontal{ margin-bottom: 2rpx; } .swiper-box .wx-swiper-dot{ width:40rpx; display: inline-flex; height: 10rpx; margin-left: 20rpx; justify-content:space-between; } .swiper-box .wx-swiper-dot::before{ content: ‘‘; flex-grow: 1; background: rgba(255,255,255,0.8); border-radius: 8rpx } .swiper-box .wx-swiper-dot-active::before{ background:rgba(244,0,0,0.8); }
以上是关于wx小程序修改swiper 点的样式的主要内容,如果未能解决你的问题,请参考以下文章