【问题标题】:Datatables with column resizing plugin not resizing correctly具有列调整大小插件的数据表未正确调整大小
【发布时间】:2014-11-07 10:14:42
【问题描述】:

当我调整标题的大小时,正文也会调整一点,但不正确。例如:

网格初始化如下:

var oTable = $('#grid').dataTable( {
    dom: 'Rlfrtip',
    "scrollX": true,
    "bPaginate": false,
    "bLengthChange": false,
    "bFilter": true,
    "bSort": true,
    "bInfo": false,
    "bAutoWidth": false
  });

我正在使用 ColReorderWithResize.js v.1.0.7

有什么想法吗?

【问题讨论】:

标签: javascript jquery css jquery-datatables


【解决方案1】:

尝试像这样给出固定宽度:

  aoColumns: [ 
    { "sWidth": "50px" },
    { "sWidth": "150px" },
    { "sWidth": "50px" },
    { "sWidth": "50px" },
    { "sWidth": "50px" }
  ]

【讨论】:

    猜你喜欢
    • 2011-08-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多