老师滑块展示的问题,为什么高度给了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

你好

这个和高度应该没有关系。可以在微信小程序调试窗口,调试下看看。

0
0

uni-app从入门到进阶 系统完成项目实战

专门为小程序0基础学员而设,让你拥有能上线的作品

1105 学习 · 743 问题

查看课程