周辺領域がグレー表示されるポップアップボックスを作成しようとしています。私の問題は、シャドウdivの不透明度がポップアップの不透明度を上書きしているように見えることです。1つを絶対位置から固定位置に変更し、ポップアップのzインデックスを増やしてみましたが、どちらも機能しませんでした。
これが問題のスクリーンショットです。
そして、以下は関連するコードです(もっと見る必要があるかどうか尋ねてください)
.textPopup
{
width: 1400px;
height: 600px;
background-color: White;
position: fixed;
margin-left: auto;
margin-right: auto;
z-index: 15;
left: 0;
right: 0;
top: 50px;
bottom: 0;
opacity: 0.2;
}
#innerPopup
{
background-color: White;
width: 1350px;
height: 550px;
position: absolute;
margin-left: auto;
margin-right: auto;
z-index: 15;
left: 0;
right: 0;
top: 50px;
bottom: 0;
opacity: 1;
}
... snip
<div id="popupShadow">
</div>
<div class="textPopup">
<div id="innerPopup">
</div>
</div>
</body>
</html>