layui table 调整行高 并设置内容自动换行

1、css 设置内容自动换行

    
     .layui-table-cell{
        overflow:visible;
        text-overflow:inherit;
        white-space:normal;
        height: 60px;/*在这里设置行高没用*/
    }

2、设置行高

done: function() { 
  //当数据渲染完后,执行的回调 $('.layui-table-cell').css('height','42px'); }
原文地址:https://www.cnblogs.com/luo1240465012/p/15214492.html