我需要能夠滾動表使用jquery移動設備的元素。如何在jquery mobile中啓用垂直滾動
例如現在我在表格中有很多數據。 和我的頁面顯示了20條記錄,我知道有25條記錄,所以當我想垂直滾動時,整個頁面正在移動,而不是我的表格。
我正在使用DataTables插件的表。
代碼:
<table id="level" width="100%" border="1" cellspacing="2" cellpadding="5" >
<thead>
<tr class="even">
<th></th>
<th><span class="time_var">Time</span></th>
<th><span class="id_level_var">ID Level</span></th>
<th><span class="level_var">Level</span></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
和Javascript:
$(document).ready(function() {
oTable = $('#level').dataTable({
"bLengthChange": false,
"aaSorting": [[1,'asc']],
"bProcessing": true,
"bServerSide": true,
"sPaginationType": "full_numbers",
"sScrollY": "500px",
"bDeferRender": true,
"sAjaxSource": "table.php"
});