次の状況:
<body>
<div style="position:fixed; width:100%">[place holder for header]</div>
<div style="position:relative;width:100%;margin-top:100px">[content]</div>
</body>
ヘッダーは常に表示され、上部にある必要があるため、これはposition:fixedである必要があります。ヘッダーの高さを自己調整した後に問題が発生します。ヘッダーが100pxより大きい場合、コンテンツの一部が非表示になります。
ヘッダーの終わりに関してコンテンツdivの開始位置を動的に設定するにはどうすればよいですか(CSS)。