0
点赞
收藏
分享

微信扫一扫

layui 表格数据换行显示

Alex富贵 2022-08-23 阅读 99
编程语言


.layui-table-cell {
height:auto;
overflow:visible;
text-overflow:inherit;
white-space:normal;
}

, done: function (res, curr, count) {
// console.log(res)
//解决操作栏因为内容过多换行问题
$(".layui-table-main tr").each(function (index, val) {
$($(".layui-table-fixed-l .layui-table-body tbody tr")[index]).height($(val).height());
$($(".layui-table-fixed-r .layui-table-body tbody tr")[index]).height($(val).height());
});
}

 

举报

相关推荐

0 条评论