私はあなたのコードを見ていませんが、私は同様のシナリオをモックアップしました。
HTML
<div id="main">
<div id="first">
<table>
<tr>
<td>A</td>
<td>B</td>
</tr>
</table>
</div>
<div id="second">
<table>
<tr>
<td>A</td>
<td>B</td>
</tr>
<tr>
<td>A</td>
<td>B</td>
</tr>
<tr>
<td>A</td>
<td>B</td>
</tr>
<tr>
<td>A</td>
<td>B</td>
</tr>
</table>
</div>
</div>
ご覧のとおり、2番目のテーブルの高さは「動的」であり、最初のテーブルより長くなる可能性があります。
CSS
#main {
width:500px;
overflow:hidden;
}
#first, #second {
padding-bottom: 1000px;
margin-bottom: -1000px;
float: left;
}
#first {
float:left;
width:100px;
overflow:auto;
}
#second {
width:400px;
float:left;
}
これまでのところ、あなたが持っているのは、#secondの高さを追跡する#firstの親です。参照
フィドル
ならどうしよう?#firstは#secondの高さに従いますが、#first_childは#firstの高さに従いません。ただし、HTMLテーブルは親のdivの高さに従わない。参照
回答:Javascripts。
最初に#secondの高さを検出してから、#first_childの高さを自動調整して#secondの高さに追従させます。
var second_height = $("#second").height();
var table_height = second_height;
$("#first_child").height(table_height);
解決
これがあなたが探しているものであることを願っています。