请问老师,singer-detail组件为何要设置 z-index
来源:4-4 歌手详情页 MusicList 组件功能交互优化(01)
 
			Madao54
2022-06-13
请问为何 singer-detail 组件这里需要设置 z-index,而且在 music-list 中也有应用
<style lang="scss" scoped>
  .singer-detail {
    position: fixed;
    z-index: 10; // ⬅️这句代码
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: $color-background;
  }
</style>
写回答
	1回答
- 
				  ustbhuangyi 2022-06-13 z-index 用来改变层级 012022-06-14
相似问题
