在這種情況下如何覆蓋通孔的z-index
參照一個DIV與另一個我不能簡單地通過使用z-index
與id="covered"
獲得的股利與id="cover"
的div頂部。
有沒有其他解決方案?
代碼從http://codepen.io/anon/pen/jhgtf:
HTML:
<div id="cover"></div>
<div id="covered"></div>
CSS:
#cover{
position:fixed;
width:800px;
background:black;
height:350px;
z-index:10;
}
#covered{
width:80px;
background:yellow;
height:50px;
z-index:11;
}