Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
位置と高さがピクセル単位で固定された垂直の親コンテナー div があります。親と同じ幅の子 div があります。これらの子 div を固定親内にスタックするにはどうすればよいですか? 私は通り抜けることができません。助けてください。
静的に実行する場合は、各子 div の top プロパティを希望どおりに設定するだけです。
したがって、それらの子 div の高さが 50px の場合
#child1{ position:relative; top:50px; } #child2{ position:relative; top:100px; }
等々