非常に長いテーブルの場合は、table
というマークアップをJQuery Mobileで使用しています。ユーザーがスクロールダウンすると、テーブルヘッドが見えなくなり、テーブルの配置が不明瞭になります。私の質問は、いつも目に見えるようにテーブルの頭を再現する方法です。ユーザーがスクロールダウンしたときにテーブルヘッドを繰り返します。
私はthe follwing solutionを試しましたが、動作しませんでした。下には、テーブルを表示するためのコード(Mako template)があります。
<table data-role="table" data-mode="reflow" class="ui-responsive" id="tAreaAnalysis">
<thead>
<tr>
<th> </th>
<th colspan="3" class="textCenter borderLeft">Gesamtumsatz</th>
% for actually_printed_product_category in product_categories:
<th colspan="3" class="textCenter borderLeft">${actually_printed_product_category.name}</th>
% endfor
</tr>
<tr class="borderBottom">
<th>Kunde</th>
<th class="borderLeft">VZR 1</th>
<th>VZR 3</th>
<th>VZR 4</th>
% for actually_printed_product_category in product_categories:
<th class="borderLeft">VZR 1</th>
<th>VZR 2</th>
<th>VZR 3</th>
% endfor
</tr>
</thead>
<tbody>
</tbody>
</table>
ありがとうございます。
これは代替ソリューションですか? http://stackoverflow.com/questions/17584702/how-to-add-a-scrollbar-to-an-html5-table –
これは私の問題を解決しないのですが、2つの別々のテーブル要素が 'div'の中にカプセル化されていますsがテーブルに使用されます。しかし、私は、応答アプリケーションを構築するためにjQuery Mobileを使用しているので、私は1つのテーブルを使用する必要があります。 – Lukas