2012-02-10 5 views
1

div要素の中にhtmlテーブルがあります。オーバーライドhtmlテーブルスタイルtable-layout-fixed

のdivは、オーバーフローで自動スクロールに設定されている

div.container {overflow-x: scroll; overflow-y: hidden;} 

私は何を達成したいことはある - 表のセルは、調整可能な自動車であってもよいが、任意のセルの最小幅を超えた場合(複数の列が自動的に追加されていると言います)ビューは自動スクロールに設定する必要があります。

<table cellspacing=0px id="tbl_iss" class="issues" style="table-layout: fixed" width="100%"> 
<thead> 
<tr bgcolor="#D0D0D0" > 
    <th width=50px style="min-width: 50px; _width: 50px;">Issue#</th> 
    <th width=100px style="min-width: 100px; _width: 100px;">Abc</th> 
    <th width=100px style="min-width: 100px; _width: 100px;">xyz</th> 
    <th width=120px style="min-width: 100px; _width: 120px;">Pqr</th> 
    <th width=200px style="min-width: 200px; _width: 200px;">Stu</th> 
    <th width=120px style="min-width: 120px; _width: 120px;">efg</th> 
</tr> 
</thead> 
</table> 

コメントplz?

+0

whatz havez you triedz farz? – elclanrs

答えて

0

テーブルと、特に1は、あなたがdiv? and give this div`であなたの表のセル幅のコンテンツをラップした場合、あなたはより多くの幸運

<th><div style="min-width: 50px; _width: 50px;">Issue#</div></th> 
可能性があり widthheight

に関する希望と同じようにテーブルセルは動作しません。

関連する問題