初心者からZ-indexへ私はfrontBoxの背後にbackleftBoxとbackrightBoxを配置したいが、私のコードは機能していないようだ。css z-index question
<style type="text/css">
#frontBox{ width: 400px; height: 500px; margin: 0 auto; background-color: #ccc; position: relative; z-index: 99;}
#backleftBox{ width: 90px; height: 90px; background-color: green; position: absolute; left: -25px; z-index: 12;}
#backrightBox { width: 90px; height: 90px; background-color: blue; position: absolute; left: -15px; z-index: 11;}
</style>
<div id="frontBox">
<div id="backleftBox"></div>
<div id="backrightBox"></div>
</div>
重複http://stackoverflow.com/questions/3376309/z-index-not-overlaying-over-divs-further-down-in-the-dom – kjy112