老师滑块展示的问题,为什么高度给了22微信端可以展示出来,但是如果不给高度22微信无法展示H5可以正常展示
来源:5-18 tabs组件 - 实现滑块的滚动 - 01

蝎子莱莱Pluto
2022-12-09
.tab_container {
font-size: $uni-font-size-base;
height: 45px;
line-height: 45px;
background-color: $uni-bg-color;
.tab_box {
width: 100%;
height: 45px;
display: flex;
position: relative;
.scroll_view {
white-space: nowrap;
width: 100%;
height: 100%;
box-sizing: border-box;
.scroll_content {
width: 100%;
height: 100%;
.tab_item_box {
height: 100%;
.tab_item {
height: 100%;
display: inline-block;
align-items: center;
padding: 0 15px;
position: relative;
color: $uni-text-color;
&_active{
color: $uni-text-color-hot;
}
}
}
.underLine{
height: 22px;
width: 25px;
background-color: $uni-text-color-hot;
border-radius: 3px;
transition: 0.5s;
position: absolute;
bottom: 0;
}
}
}
}
}
写回答
1回答
-
Sunday
2022-12-09
你好
这个和高度应该没有关系。可以在微信小程序调试窗口,调试下看看。
00
相似问题
滑块在微信端无法展现
回答 2
打包到APP后首页无法展示
回答 1