
界面代码如上,自定义的导航栏,下面是列表数据,可以上拉加载更多,列表上拉时,导航栏会被覆盖,这个应该怎么处理?
禾禾禾禾 (作者)
自定义的状态栏的css:
.title-bar-contents {
z-index: 999;
height: calc(var(--status-bar-height) + 56px);
}
/* 状态栏 占位*/
.status-bar {
width: 100%;
position: fixed;
top: 0;
background-color: #FFFFFF;
height: var(--status-bar-height);
}
/* 标题栏*/
.titles-bar {
width: 100%;
height: 56px;
position: fixed;
background-color: #FFFFFF;
top: var(--status-bar-height);
}
禾禾禾禾 (作者)
这个界面刚好是简单的,因为还有其他自定义的复杂的导航栏,所以统一app的导航栏就全部自定义了。就是层级定义了感觉不起作用啊,所以才咨询一下你们,那我先用list组件试一下
2020-06-29 09:25