<style>
.layui-table-cell {
height: auto;
overflow: visible;
text-overflow: inherit;
white-space: normal;
word-break: break-all;
}
.layui-table-cell a {
text-decoration: underline;
}
.layui-table-cell div {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-height: 30px;
line-height: 30px;
}
</style>
<script>
function nl2br(str, is_xhtml) {
var breakTag = (is_xhtml || typeof is_xhtml === 'undefined') ? '<br />' : '<br>';
return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + breakTag + '$2');
}
</script>