• 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);   
    }

    移动swiper的点到左下角 55555

    .wx-swiper-dots.wx-swiper-dots-horizontal{
       position: absolute;
       left: 0;
       transform: translateX(10rpx);  
    }
  • 相关阅读:
    全局变量、局部变量
    结构体位域
    关键字(static const volatile extern sizeof)
    预处理#
    头文件<time.h>
    头文件<string.h>
    头文件<stdlib.h>
    session 入库
    php中的匿名函数和闭包
    redis 的 RDB 和 AOF 持久化的区别
  • 原文地址:https://www.cnblogs.com/Mvloveyouforever/p/9007386.html
Copyright © 2020-2023  润新知