.test{ width:200px;}
.layui-tree-txt{white-space:pre-line;}
.layui-tree-entry{height:auto;}
<body>
<div class="test" id="test1"></div>
</body>
绑定元素设置宽度
.test{ width:200px;}
.layui-tree-txt{white-space:pre-line;}
.layui-tree-entry{height:auto;}
<body>
<div class="test" id="test1"></div>
</body>
绑定元素设置宽度