2行のコンテナを持つコンテナ(ラッパー)があり、両方の行の高さの値をautoとして指定して、その中のコンテンツに基づいて動的にサイズを変更できるようにしました(各行に特定の高さを指定するのではなく、row-top height 46 % および行下部 54%)。一番下の行のコンテナーの高さを CSS で画面に自動入力しようとしています (*JavaScript ではありません)。意図した結果については、下に添付されている画像を確認してください。アドバイスください、よろしくお願いします。
JSfiddle でプレビューするには、ここをクリックしてください
HTML
<div id="content-wrapper">
<div id="row-top">
Lorem Ipsum is simply dummy text of the printing and typesetting industry.Lorem Ipsum is simply dummy text of the printing and typesetting industry.Lorem Ipsum is simply dummy text of the printing and typesetting industry.Lorem Ipsum is simply dummy text of the printing and typesetting industry.
</div>
<div id="row-bottom">
<iframe id="gmap"></iframe>
</div>
</div>
CSS
#content-wrapper {
display:block;
height:100%;
overflow-y: scroll;
width:600px;
float:left;
background-color:yellow;
}
#row-top {
color:#fff;
display:block;
position:relative;
width:100%;
height:auto;
background-color:blue;
}
#row-bottom {
display:block;
width:100%;
height:auto;
}
iframe#gmap {
overflow: hidden;
height:100%;
width: 100%
}
JSfiddle でプレビューするには、ここをクリックしてください
意図した結果: