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