シナリオ:
テーブル ヘッダーを含む親 div と、テーブル データを含む子 div があります。
標的:
すべてのコンテンツを左から右にスクロールする水平方向のスクロールを可能にしたいのですが、テーブル データが垂直方向にオーバーフローした場合は、ヘッダーを表示して垂直方向にスクロールできるようにしたいと考えています。
問題:
テーブル データが垂直方向にオーバーフローし、幅が親コンテナーを超える場合、スクロールしない限り垂直スクロール バーが表示されないため、タイトルが表示されます。
ここに例を設定します: http://jsfiddle.net/uRHkU/2/ - 私が達成しようとしていることは可能ですか?
<div class="parentDiv">
<p>very very very long header</p>
<div class="childDiv">
<p>content that stretches the full width</p>
<p>content that stretches the full width</p>
<p>content that stretches the full width</p>
<p>content that stretches the full width</p>
<p>content that stretches the full width</p>
<p>content that stretches the full width</p>
<p>content that stretches the full width</p>
<p>content that stretches the full width</p>
<p>content that stretches the full width</p>
<p>content that stretches the full width</p>
</div>
</div>