htmlコードは以下の通りである:z-indexを使って3つのレベルのdivを順番に表示する方法はありますか?
<div class="first common">
i am the first div.
<div class="second common">
i am the second div.
<div class="third common">
i am the third div.
</div>
</div>
</div>
はCSS:
.common {
position: absolute;
left: 50px;
top: 50px;
width: 200px;
height: 200px;
color: #fff;
}
.first {
background-color: #8EE5EE;
}
.second {
background-color: #7A67EE;
}
.third {
background-color: #0000AA;
}
を次のように結果があるそして今、私は前に最初のdivを配置します、中間の2番目のdivと3番目のdivの後ろに(逆に)可能であればz-indexを使用します。 しかし、私はどのように行うか分からない。
? – NoobEditor