.wxml
<swiper class="swiper-container" indicator-dots indicator-color="white" autoplay="true" interval="2000">
<swiper-item>
<view class="item">A</view>
</swiper-item>
<swiper-item>
<view class="item">B</view>
</swiper-item>
<swiper-item>
<view class="item">C</view>
</swiper-item>
</swiper>
.wxss
.swiper_container{
/* width:100px; */
height:150px;
/* text-align: center;
line-height: 100px; */
}
.item{
height:100%;
line-height:150px;
text-align: center;
}
swiper-item:nth-child(1) .item{
background-color:lightgreen;
}
swiper-item:nth-child(2) .item{
background-color: azure;
}
swiper-item:nth-child(3) .item{
background-color: bisque;
}