私は次のセットアップを持っています
HTML:
<div id="resizable">
<div id="fixHeightTop">Whatever</div>
<div id="problematicDiv">Whatever</div>
<div id="semiProblematicDiv">Whatever</div>
<div id="fixHeightBottom">Whatever</div>
</div>
CSS:
#resizable {
position: relative;
}
#fixHeightTop {
position: relative;
height: 10px;
}
#fixHeightBottom {
position: absolute;
height: 10px;
}
#problematicDiv {
position: relative;
float: left;
width: 80%;
overflow: auto;
}
#semiProblematicDiv {
position: relative;
float: right;
width: 20%;
overflow: auto;
}
#resizable div はサイズ変更可能 (jQuery) です。私がする必要があるのは、 problemDiv と semiProblematicDiv に 100% に等しい高さ - fixHeightTop 高さ - fixHeightBottom 高さを与えて、サイズ変更可能な要素の高さ全体に拡張できるようにすることです。問題は、それを行う方法を理解できないことです。height: 100% を使用すると、一番下の要素に重なってしまいます。
それを行う方法はありますか?