banner.wxss
1.23 KB
1
2
3
4
5
6
7
8
9
10
11
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.detail-banner {
position: relative;
width: 100%;
height: 800rpx;
background-color: #f4f4f4;
}
.detail-banner .swiper-wrapper {
height: 800rpx;
}
.detail-banner .slide-image {
width: 100%;
height: 100%;
}
.detail-banner .dots {
position: absolute;
left: 50%;
bottom: 100rpx;
display: flex;
padding: 5rpx 6rpx;
height: 20rpx;
box-sizing: border-box;
border-radius: 10rpx;
justify-content: center;
transform: translateX(-50%);
}
.detail-banner .dots .bg {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0.2;
background-color: #fff;
border-radius: 10rpx;
}
.detail-banner .dots .dot {
margin: 0 4rpx;
width: 10rpx;
height: 10rpx;
opacity: 0.2;
background: #fff;
border-radius: 100%;
}
.detail-banner .dots .dot.active {
opacity: 1;
}
.detail-banner .product-name {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 80rpx;
padding: 0 30rpx;
font-family: PingFang-SC-Regular, sans-serif;
color: #fff;
font-size: 28rpx;
font-weight: bold;
line-height: 80rpx;
letter-spacing: -0.39rpx;
opacity: 0.8;
background-color: #000;
}
.product-name .name {
display: block;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}