Wrap layui-table

layui the table control the default is only one line of data displayed on a single line, sometimes a long time on endless content, you need to put all the content is displayed, so you need to change line processing.

Simply add the following styles can be.

.layui-table-cell {
    font-size:14px;
    padding:0 5px;
    height:auto;
    overflow:visible;
    text-overflow:inherit;
    white-space:normal;
    word-break: break-all;
}

Reference: https: //blog.csdn.net/cdsn13082487212/article/details/91039184

Guess you like

Origin www.cnblogs.com/masha2017/p/12110730.html