1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| /* pages/list/list.wxss */ .swiper-container{ /* 轮播图容器的高度 */ height: 150px; }
.item{ height: 100px; line-height: 150px; text-align: center; }
.swiper-item:nth-child(1).item{ background-color: lightcoral; } .swiper-item:nth-child(2).item{ background-color: lightgreen; } .swiper-item:nth-child(3).item{ background-color: lightskyblue; }
|