.top {
height: 100vh;
}
.div1 {
min-height: 215px;
box-sizing: border-box;
height: 30vh;
}
.div2 {
box-sizing: border-box;
min-height: calc(100vh - 30vh - 265px);
padding-top: 2.5em;
margin-top: 0;
display: table;
}
.div3 {
min-height: 265px;
box-sizing: border-box;
background: white;
display: table;
width: 100%;
font-weight: 700;
padding-bottom: 42px;
}
私はカルク(100VH 265px - - 30vh)を使用しない分を設定します-height of div 2.残りの高さ(div2の高さ= 100vh - div1の高さ - div2の高さを意味する)をどのように持つことができますか?
ここではフレックスが役に立つと思っていますが、どのようにそれを使用するかについてはかなり確信しています。本当に感謝します。
ありがとうございます。
これを重複としてマークする前に、私はflexを試してみましたが、IE11ではうまく動作しません。
ことになります。あなたは例を投稿できますか?唯一の問題はIE10で、-ms- prefixを使用する必要があります。 –
フレックスを使用したい場合は、http://stackoverflow.com/questions/25098042/fill-remaining-vertical-space-with-css-using-displayflex/25098486の複製のように見える –
フレックスボックスはIE11で正常に動作します。 .. –