Created
January 7, 2023 07:07
-
-
Save ksakae1216/ec277cb0b4b4368a5ec491916fb32ec1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="display: flex; height: 100vh; flex-direction: column;"> | |
<div style="flex: none;"> | |
ここは高さを指定 | |
</div> | |
<div style="flex: 1 1 auto; overflow: auto;"> | |
<!-- 入れ子のサンプル --> | |
<div style="display: flex; height: 100%; flex-direction: column;"> | |
<div style="flex: none;"> | |
ここは高さを指定 | |
</div> | |
<div style="flex: 1 1 auto; overflow: auto;"> | |
ここは残りの領域を埋めてくれる | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment