2013-04-01 80 views
1

我的JavaScript看起來如下:與數據表的一個問題 - sScrollX財產不工作

$(document).ready(function() { 
     oTable = $('#ecTable').dataTable({ 
      "sScrollY": "580px", 
      "sScrollX": "600px", 
      "bPaginate": false, 
      "bScrollCollapse": true, 
      "bProcessing": true, 
      "bInfo": true, 
      "aaSorting": [[0, 'desc']] 
     }); 
    }); 

產生的表如下所示: enter image description here

正如你所看到的東西是不對的。我似乎無法讓DataTables實際顯示X滾動條。

回答

0

試試這個..

"sScrollXInner": "100%", 
"sScrollX": "100%"