表头多行显示:
<style type
="text/css">
.layui
-table
-cell
{
height
: auto
;
overflow
: visible
;
text
-overflow
: inherit
;
white
-space
: normal
;
}
</style
>
表头内容居中,内容向左:
{field
: "name", title
: "名称", width
: 200, align
: "center",
templet
: function (data
) {return '<div style = "text-align: left">' + data
.name
+ '</div>'
}
}
转载请注明原文地址:https://ipadbbs.8miu.com/read-46858.html