gpt4 book ai didi

css - 全屏覆盖问题

转载 作者:太空宇宙 更新时间:2023-11-04 06:38:19 46 4
gpt4 key购买 nike

我试图在显示进度条时覆盖屏幕,但覆盖不正确,几个 DIV 仍然突出显示,如图所示。

我正在使用以下 CSS 样式,请指出导致问题的原因

style = {
qoverlay: {
position: 'absolute',
top: '0',
left: '0',
background: 'rgba(0,0,0,0.6)',
'z-index': '50',
width: '100%',
height: '100%'
}
}

我正在使用 material-ui/core/Dialog

<Dialog open={this.state.confirmOpen} aria-labelledby='form-dialog-title' style={this.style.qoverlay}>

enter image description here

最佳答案

您可能需要增加 z-index 的值。尝试将其从 50 更改为 99999。或者检查保持可见的元素的 z-index 值,并为您的叠加使用更大的数字。

关于css - 全屏覆盖问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54049498/

46 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com