/* custom-tab-bar/index.wxss */ .head { position: fixed; z-index: 1; width: 100%; height: 35px; line-height: 35px; background-color: #fff; top: 0; display: flex; } .item { flex: 1; background-color: #fff; text-align: center; box-sizing: border-box; } .text { color: #646566; height: 1.5em; line-height: 1.5em; font-size: 18px; font-weight: 600; display: inline-block; } .line { width: 4em; height: 5rpx; margin: -5rpx auto; background-color: #1989fa; } .act { color: #1989fa; }