index.wxss 1.2 KB
Newer Older
李嘉林 committed
1 2 3 4 5 6 7 8
.banner{
  /* position: relative; */
}
.bannerItem{
  position: relative;
}
.swiper{
  width: 100%;
李嘉林 committed
9 10 11
  /* height: calc(100vw*9/16); */
}
.onterDot{
李嘉林 committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
  padding-bottom: 32rpx;
}
.swiper-item{
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.bannerImgItem{
  width: 100%;
  height: 100%;
}
.dots{
  position: absolute;
  bottom: 10rpx;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}
.dotsItem{
  margin: 0 8rpx;
  background: rgba(255,255,255,0.4);
}
李嘉林 committed
43 44 45
.dotBorder{
  border: 1px solid var(--dotsColor);
}
李嘉林 committed
46
.dotsStyle1{
李嘉林 committed
47 48 49 50 51 52 53
  width: 36rpx;
  height: 12rpx;
  border-radius: 12rpx;
  -webkit-border-radius: 12rpx;
  -moz-border-radius: 12rpx;
  -ms-border-radius: 12rpx;
  -o-border-radius: 12rpx;
李嘉林 committed
54 55
}
.dotsStyle2{
李嘉林 committed
56 57
  width: 16rpx;
  height: 16rpx;
李嘉林 committed
58 59 60 61 62 63 64 65 66 67
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}
.isDotsColor{
  background: var(--dotsColor);
  border-color: var(--dotsColor);
}