index.wxss 1.25 KB
Newer Older
李嘉林 committed
1 2 3 4 5 6 7 8
.banner{
  /* position: relative; */
}
.bannerItem{
  position: relative;
}
.swiper{
  width: 100%;
李嘉林 committed
9
  overflow: hidden;
李嘉林 committed
10
  transform: translateY(0);
李嘉林 committed
11 12 13
  /* height: calc(100vw*9/16); */
}
.onterDot{
李嘉林 committed
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 43 44
  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
45 46 47
.dotBorder{
  border: 1px solid var(--dotsColor);
}
李嘉林 committed
48
.dotsStyle1{
李嘉林 committed
49 50 51 52 53 54 55
  width: 36rpx;
  height: 12rpx;
  border-radius: 12rpx;
  -webkit-border-radius: 12rpx;
  -moz-border-radius: 12rpx;
  -ms-border-radius: 12rpx;
  -o-border-radius: 12rpx;
李嘉林 committed
56 57
}
.dotsStyle2{
李嘉林 committed
58 59
  width: 16rpx;
  height: 16rpx;
李嘉林 committed
60 61 62 63 64 65 66 67 68 69
  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);
}