微信小程序swiper小程序轮播图小圆点样式修改

微信小程序swiper小程序轮播图小圆点样式修改<swiperclass=”swiper-box”indicator-dots=”{{indicatordots}}”autoplay=”{{autoplay}}”><blockwx:for=”{{swiperItem}}”><swiper-item><navigatorurl=”{{item.linkUrl}}”><imageclass=

大家好,又见面了,我是你们的朋友全栈君。

<swiper class="swiper-box" indicator-dots="{
  
  {true}}" autoplay="{
  
  {true}}" circular="{
  
  {true}}">
  <block wx:for="{
  
  {['red', 'blue', 'purple']}}" wx:key="*this">
    <swiper-item style="background-color: {
  
  {item}}">
      <view class="swiper-item {
  
  {item}}"></view>
    </swiper-item>
  </block>
</swiper>


.swiper-box .wx-swiper-dots.wx-swiper-dots-horizontal{
  margin-bottom: 20rpx;
}

.swiper-box .wx-swiper-dot{
 width:40rpx;
 height: 10rpx;
 margin-left: 0 10rpx;
 
 display: inline-flex;
 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(255,255,255,1);   
}
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/143620.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号