微信小程序自定义轮播图指示点样式

html 复制代码
<swiper class="swiperClass" indicator-dots="true" autoplay="true">
    <block wx:for="{{5}}" wx:key="*this">
        <swiper-item>
            <view class="swiper-item">{{item}}</view>
        </swiper-item>
    </block>
</swiper>
css 复制代码
.swiperClass{
    width: 705rpx;
    position: absolute;
    top: 101rpx;
    height: 501rpx;
    left: calc(50% - 352.5rpx);
}
.swiperClass .wx-swiper-dots.wx-swiper-dots-horizontal{
    margin-bottom :  2rpx;
}
.swiperClass .wx-swiper-dot{
   width : 120rpx;
   display : inline-flex;
   height :  10rpx; 
   margin-left :  20rpx;
   justify-content :space-between;
}
.swiperClass .wx-swiper-dot::before{
   content :  '';
   flex-grow:  1;  
   background : rgba( 255 , 255 , 255 , 0.8 );
   border-radius:  8rpx
}
.swiperClass .wx-swiper-dot-active::before{
   background :rgba(244 ,0 ,0 ,0.8 );    
}
相关推荐
2501_915918413 小时前
苹果App Store上架审核卡住原因分析与解决方案指南
android·ios·小程序·https·uni-app·iphone·webview
用户700980735738 小时前
从零开发一个微信记账小程序,零依赖、附完整源码
微信小程序
焦糖玛奇朵婷11 小时前
盲盒小程序开发|解锁开箱新体验[特殊字符]
大数据·开发语言·程序人生·小程序·软件需求
左师佑图11 小时前
微信小程序组件事件冒泡问题排查与解决方案
微信小程序·小程序
树下水月12 小时前
微信小程序接口,必须使用https的443端口吗?
微信小程序·小程序·https
毕设源码-邱学长12 小时前
【开题答辩全过程】以 灵山水牛奶配送小程序的设计与实现为例,包含答辩的问题和答案
小程序
2501_9159184113 小时前
基于Mach-O文件的动态库与静态库归属方案及API扫描实践
android·ios·小程序·https·uni-app·iphone·webview
2501_9151063213 小时前
iOS 证书无法跨电脑使用?签名迁移方法一文讲透
android·ios·小程序·https·uni-app·iphone·webview
毕设源码-赖学姐13 小时前
【开题答辩全过程】以 基于springboot的酒店预订小程序自动化订制系统为例,包含答辩的问题和答案
运维·小程序·自动化
CHU72903513 小时前
邻里同心,便捷团购——社区团购商城小程序前端功能版块解析
前端·小程序