我正在为我的应用程序使用jQuery数据表1.10。我的数据表定义如下:Jquery Datatable调整大小问题当标题光标发生变化时
$("#info_table", node).DataTable(
{
"dom" : 'Rflrtip',
"rtl" : true,
"paging" : true,
"pagingType": "full_numbers",
"ordering" : true,
"searching" : true,
"columns" : aoColumns,
"fnCreatedRow" : function(nRow, aData,
iDataIndex) {
$(nRow).attr('id', aData.ID);
},
"language": {
"emptyTable": "No records to display"
}
});
问题是我需要更改tableadad游标进行排序。下面的CSS允许我改变光标。
#info_table th.sorting, #info_table th.sorting_asc, #info_table th.sorting_desc{
cursor: pointer !important;
}
但是,当我改变光标,它不允许我重新调整列的大小。在我的应用程序中提供列大小调整选项是必需的。任何人都可以帮助我找到方法来重新调整列大小时,更改cusor。
你能提供jsfiddle吗? – abpatil
看看这[jsFiddle](https://jsfiddle.net/ashishbpatil1/yt3sxx4a/1/) – abpatil