width height 100%のdiv を position absoluteで縦に積み重ねたいのですが重なって表示されてしまいます。
html
1<div id="wrapper"> 2 <div class="box"> 3 </div> 4 <div class="box"> 5 </div> 6 <div class="box"> 7 </div> 8 <div class="box"> 9 </div> 10</div>
css
1#wrapper{ 2 position: relative; 3} 4 5.box { 6 position: absolute; 7 width: 100vw; 8 height : 100vh; 9} 10
宜しくお願いします!
回答1件
あなたの回答
tips
プレビュー