customBannerSwiper.wxss 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. page {
  2. background-color: #fff;
  3. }
  4. .swiper-block {
  5. background: #fff;
  6. width: 100%;
  7. height: 100%;
  8. }
  9. .swiper-item {
  10. display: flex;
  11. flex-direction: column;
  12. justify-content: center;
  13. align-items: flex-start;
  14. overflow: unset;
  15. width: 100%;
  16. padding-top: 0rpx;
  17. padding-bottom: 80rpx;
  18. box-sizing: border-box;
  19. }
  20. .slide-image {
  21. width: 100%;
  22. margin: 0rpx 0rpx;
  23. z-index: 1;
  24. }
  25. .shadow {
  26. box-shadow: 5rpx 5rpx 20rpx rgba(0, 0, 0, 0.5);
  27. }
  28. .active {
  29. transition: all .5s ease-in 0s;
  30. z-index: 20;
  31. opacity: 1;
  32. }
  33. .common {
  34. transition: all .5s ease-in 0s;
  35. z-index: 0;
  36. opacity: 0.4;
  37. }
  38. .title {
  39. z-index: 99;
  40. color: #ffffff;
  41. }
  42. /* 以下修改swiper指示点样式,需要在引入页面修改CSS */
  43. .wx-swiper-dots.wx-swiper-dots-horizontal {
  44. margin-bottom: -16rpx;
  45. }
  46. /* 圆点样式 */
  47. .wx-swiper-dots .wx-swiper-dot {
  48. width: 5rpx;
  49. height: 5rpx;
  50. margin: 0 15rpx;
  51. }
  52. /* 当前选中圆点样式 */
  53. .wx-swiper-dots .wx-swiper-dot.wx-swiper-dot-active {
  54. width: 16rpx;
  55. border-radius: 10rpx;
  56. }