tabbar.wxss
699 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
/* components/tabbar.wxss */
.tabbar {
height: 102rpx;
line-height: 102rpx;
box-sizing: border-box;
border-bottom: 1rpx solid #EEEEEE;
}
.flex{
display: flex;
}
.tabbar-item {
float: left;
margin-right: 80rpx;
font-size: 28rpx;
color: #333;
}
.flex .tabbar-item{
flex: 1;
text-align: center;
margin-right: 0;
}
.tabbar-item:last-of-type{
margin-right: 0;
}
.tabbar-item.active {
color: #05BAA0;
position: relative;
font-weight: bold;
}
.tabbar-item.active::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 80rpx;
height: 4rpx;
background-color: #05BAA0;
}