div表示テーブルに3列の校正があります。 最初はここjsfiddle https://jsfiddle.net/9mzuxza9/2/ 内側の左側には、例えば、列内の内容がコンテナよりも高くなってコンテナが高さに広がってもコンテナが画面の高さと同じ高さになるようにしたい場合、結果は となります。コンテンツ。スクロール:あなたは固定の高さとオーバーフローを必要 CSSコンテンツはコンテナを展開します
html,body{
width: 100%;
height: 100%;
}
.row{
table-layout: fixed;
display: table;
height: 100%;
width: 100%;
border: 1px solid grey;
}
.left {
width:300px;
height:100%;
display: table-cell;
}
.middle {
height:100%;
display: table-cell;
width:100%;
}
.right {
height:100%;
width:300px;
display: table-cell;
}
HTML
<div class="row">
<div class="left"> Some content <table border="1">
<thead>
<tr>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<!-- ...more rows-->
</tbody>
</table>
</div>
<div class="middle"> This should fill the space left </div>
<div class="right"> Some other content </div>
</div>
オーバーフローしたコンテンツを隠すには、コンテナに 'overflow:hidden;'を使用してください。それをスクロールするには、 'overflow:scroll-y;'を使用してください。 – cdm
@cdm OPは – KWeiss
を使用する 'display:table-cell;'では動作しません。 –