- 页面里加
.mytable .layui-table-cell{
height:auto;
overflow:visible;
text-overflow:inherit;
white-space:normal;
}
这样就覆盖了layui.css里默认的样式
- 可以再表头中设置style属性
style:'height:auto;overflow:visible;text-overflow:inherit;white-space:normal;'