赤いボックスが緑のボックスと同じサイズではないのはなぜですか?(2つの画像をオーバーレイするため、絶対位置が必要です)
私は何が間違っているのですか?
<div style="position: relative; float: left; width: 300px; background: red; border: 10px solid red">
<div id="holder" style="position: relative;">
<div style="position: absolute; left: 0px; top: 0px; background: green">
<img src="image" width="100" height="100"></div>
<div style="position: absolute; left: 0px; top: 0px; background: green">
<img src="overlay" width="100" height="100"></div>
</div>
</div>