Problem Description
Solution
Use the callback after the dynamic rendering of the table is completed to modify the cell style
done:function (res,curr,count) {
$('.layui-table-cell').css({
'height':'auto'});
}
Effect picture
Disadvantages
When all the tables in the table field
have no sort
sorting function, they are completely usable, but when even one in the table field
has a sorting function, as long as one click to sort, the style will be destroyed. Dear friends, come according to your own situation, which one is bigger Niu solved this problem, please teach me (/Cry face/Cry face)