固定レイアウト
ガイドコース 頂部固定レイアウト
htmlを上記のように表記します.特に
次に、コンテンツ領域の
次に、上部固定レイアウトの結果を確認するために、コンテンツ領域を人為的に追加すると、


htmlを上記のように表記します.特に
<section class="content>
部は、容器で包み、以降ダウンジャケットや利益を利用するのが便利になるので、上記のように表記しました.header
は上部が固定されているため、次のように指定されています..top {
position: fixed;
top:0;
left:0;
right:0;
height: 100px
...
}
また、主なコンテンツの領域がmin-height: 100%
であるため、コンテンツの領域がタイトルを侵害し、footer
も100 px未満であるため、まずコンテンツ領域のCSSをmargin-top: -100px;
使用すると、コンテンツ領域は100 pxに上昇し、ツイッターは低下します.
次に、コンテンツ領域の
padding-top
値を200 pxとする.margin
の100 pxに上昇し、header
の領域の100 pxはコンテンツ領域の位置にぴったり合っている.次に、上部固定レイアウトの結果を確認するために、コンテンツ領域を人為的に追加すると、
header
が上部に固定される.
Reference
この問題について(固定レイアウト), 我々は、より多くの情報をここで見つけました https://velog.io/@wlgns2223/고정-레이아웃テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol