jQuery UI使用表和colspansresize
我需要对表执行jQuery UI Resize效果。 我的桌子有colspans,宽度等于100%。 我无法调整包含天数的表格列。 没有colspan一切都很好。 我该怎么做才能纠正这种行为?
Table 26/12 27/12 28/12 123 123 123
$(function () { $('table th').resizable({ handles: 'e', minWidth: 18 }); });
演示: http : //jsfiddle.net/Helid/JvELx/
只需删除table-layout:fixed;
来自你的css类:
table, td, th { /*table-layout:fixed;*/ overflow:hidden; white-space: nowrap; text-overflow: ellipsis; }
现场演示