AddTabView.wxss
830 Bytes
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
/* pages/addTransform/components/AddTabView/AddTabView.wxss */
.tab {
float: left;
width: 21.34%;
box-sizing: border-box;
text-align: center;
background: #F2F2F7;
}
.view {
box-sizing: border-box;
float: left;
width: 78.66%;
height: 100%;
position: relative;
padding: 16rpx 32rpx;
}
.tab-item {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 240rpx;
font-size: 28rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #6E6E7A;
box-sizing: border-box;
padding: 0 10rpx;
}
.tab-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.active {
font-weight: 700;
background: #fff;
color: #2D2D33;
position: sticky;
top: 0;
font-size: 28rpx;
}