我有類似如下的CSS:的z-index不與位置固定工作
#one{
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 999;
}
#two{
position: relative;
z-index: 9;
width: 200px;
height: 200px;
background: red;
}
#link{
position: relative;
z-index: 9999999; /*this is not in higher layer why??? */
}
我不能增加的#two
的z指數按我的設計。
但我已經給#link
分配了更高的z-index,但它沒有進入更高層。
那麼,爲什麼固定位置阻塞到圖層(z-index)?
如果#one的立場沒有定位固定的,那麼它會正常工作。所以,我的問題是爲什麼固定位置給我一個錯誤?
@Dwza有一個小提琴 – 2014-08-27 10:24:34