我試圖做一個彈出框,導致周圍地區變灰。我的問題是影子div的不透明度似乎超過了彈出窗口的不透明度。我嘗試改變從絕對位置到固定位置,增加彈出窗口的z索引,但都不起作用。絕對定位元素的不透明度
Here是該問題的屏幕畫面。
而且下面是培訓相關的代碼(詢問你是否需要查看更多)
.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>
您的屏幕截圖鏈接返回404未找到。 – 2012-08-15 09:53:59
我重新上傳它。只需一秒 – 2012-08-15 09:56:09