是否有可能有一個絕對定位的,透明的div覆蓋了一系列的可點擊的div?我希望能夠將鼠標懸停在下面的紅色div上以獲得迴應。可點擊下方的div透明DIV
<style type="text/css">
#holder{
width:200px;
height:200px;
}
.clickMe {
width:100px;
height:100px;
cursor:pointer;
background-color:red;
border:1px solid black;
float:left;
margin:-1px;
padding:0;
}
.hidey {
position:absolute;
top:0;
left:0;
z-index:50;
height:50%;
width:50%;
opacity:.25;
background-color:black;
}
</style>
<div class="hidey"></div>
<div id="holder">
<div class="clickMe"></div>
<div class="clickMe"></div>
<div class="clickMe"></div>
<div class="clickMe"></div>
</div>
什麼反應?你究竟想要完成什麼?你的目標的基本知識可能會導致具體的答案! – Zuul