请问为何 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>
慕课网明星讲师黄轶深度讲解 Vue3.0 ,提升的不止是Vue代码能力
了解课程