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

    技术2023-12-23  92

    表头多行显示:

    <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>' } }
    Processed: 0.013, SQL: 10