我使用jQuery的數據表,我需要包含一個容器DataTable的大小變化
表裏面現在表格的寬度exceedthe容器
我嘗試以下
1-設置sWidth
選項在table
並在columns
3-集bAutoWidth
爲false
2-變化dataTables_wrapper
東西的價值工程
我的代碼看起來象
的JS
$scope.dtOptions = DTOptionsBuilder
.fromSource('api/fromRest')
$scope.dtColumns = [
DTColumnBuilder.newColumn('firstCol').withTitle('first')
.....
的HTML
<table datatable="ng" dt-options="dtOptions" dt-columns="dtColumns"
dt-column-defs="dtColumnDefs">
<tfoot>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tfoot>
</table>
我不知道fnAdjustColumnSizing是什麼,如果我有CSS聲明,有沒有辦法覆蓋它的數據表? – Emad
我剛剛發現了什麼fnAdjustColumnSizing,沒有我不使用它。 – Emad
你需要試試這個。更有助於理解我們到底想要什麼!我會很樂意提供幫助! – edocCode