设置css样式如下:
.layui-table-cell { height: 60px; line-height: 60px; } th .layui-table-cell { height: 30px; line-height: 30px; } th .laytable-cell-1-0-7 { height: 30px; line-height: 30px; } .layui-table img { width: 100px; height: 60px; }
其中,
.layui-table-cell设置行高
th .layui-table-cell设置表头行高
th .laytable-cell-1-0-7设置固定列表头行高
.layui-table img设置显示图片的高和宽