在父组件下隐藏的Bootstrap模式

问题描述 投票:0回答:1

我在角度4中的子组件中使用bootstrap模态,我可以看到模态但它被父组件隐藏。我增加了z-index,没什么用。

angular modal-dialog parent-child
1个回答
0
投票

尝试使用重要设置z-index:

z-index: 10001!important;
© www.soinside.com 2019 - 2024. All rights reserved.