我有一个按钮,它会创建一个弹出窗口并使页面背景变为黑色。这有效,但是不影响任何引导容器。我目前正在使用引导程序4并做出反应。
我的流行音乐的CSS如下
.popup {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
background-color: rgba(0,0,0, 0.5) !important;
}
.popupInner {
position: absolute;
left: 25%;
right: 25%;
top: 25%;
bottom: 25%;
margin: auto;
border-radius: 20px;
position: absolute;
left: 25%;
right: 25%;
top: 25%;
bottom: 25%;
margin: auto;
background: white;
}
任何人都对如何定位这些容器有任何见识。
在弹出窗口上设置z-index可能会修复它(例如z-index: 1
)。
如果仍不能解决问题,则可能需要在这些bootstrap元素(例如z-index: 0
)上设置较低的z-index
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句