/*layui-table 表格内容允许换行*/
.layui-table-cell{
font-size:12px;
//padding:0 5px;
vertical-align: middle;
height: auto;
//overflow:visible; //内容全显示,注释就可以省略显示
text-overflow:inherit;
white-space:normal;
//word-break: break-all; //
}
结合br显示 有个坑:
table.render({
.......
//, size: 'sm' //小尺寸的表格, 对换行有影响, 需要注释。
.......
//右侧固定高度调整
, done: function (res, curr, count) {
$(".layui-table-main tbody tr").each(function (index, val) {
var length = $(".layui-table-main tbody tr").length / 2;
if (index <= length)
$($(".layui-table-fixed .layui-table-body tbody tr")[index]).height($(val).height());
});
}
。。。。。。。