layui表头过长多行显示&表头内容居中,内容向左

表头多行显示:

<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 '
' + data.name + '
'
} }

你可能感兴趣的:(layui表头过长多行显示&表头内容居中,内容向左)