我有一個(CSS)疊加的問題。下面降低z-index的原因子孫元素成爲不可點擊
在我開發網站的標籤盒具有的z-index設置爲-1,這樣他們的邊界出現在他們的選項卡背後,使得有源標籤的白色底部邊框覆蓋它。但是在所有的瀏覽器上,除了Opera,這使得tab-boxes(鏈接,表單等)的後代變得不可點擊。你可以看到這個在:
誰能幫助?這裏的HTML和CSS的梗概,雖然上面的檢查與螢火蟲很可能會更照亮鏈接:
<ul class="odtabs">
<li id="tab-Authors1" class="first active"><a href="link">Tab</a></li>
</ul>
<div id="tab_content-Authors1" class="odtab-content">
<p><a href="link">Tab Box</a></p>
</div>
<style type="text/css">
<!--
.odtabs li {
float: left;
background-color: #ddd;
width: 80px;
height: 19px;
list-style-type: none;
}
.odtabs li.active {
background-color: white;
border-bottom-color: white;
}
.odtab-content {
border: 1px solid #babcbd;
margin-top: -1px;
clear: both;
position: relative;
top: -1px;
z-index: -1;
}
-->
</style>
我只是做了,並且它不幫助(如你所期望 - z-索引是-1或-100它仍然是低於所有其他元素,所以應該相同渲染) – tog22 2009-09-30 11:30:51
哼哼..它爲我文我改變使用Firebug的價值在Firefox中。 – Steven 2009-09-30 13:37:54
它是否適合你,現在我已經改變樣式表中的值?您使用的是什麼Firefox版本/操作系統,並在其他瀏覽器中爲您工作?我欣賞的幫助...... – tog22 2009-09-30 13:43:24