css里面加上:
/*layui-table 表格内容允许换行*/
.layui-table-cell{
height: auto;
overflow:visible;
text-overflow:inherit;
white-space:normal;
}
在table里面删除掉字段fixed: 'left',删除完后如下
{type: 'checkbox'}
,{field: 'id', title: 'ID', width: 80, sort: true}
代码上改动,我是每隔五个就换行,加上"<br>"后,浏览器会自动识别换行
if (count % 5 == 0) {
user += "</br>";
}
效果图:

image.png