原创: EasyUI Tree 最后一级 节点 横向排列

原创: EasyUI  Tree 最后一级 节点 横向排列

转载请指明出处

必须要写在: onLoadSuccess 事件中

            ddAuthTree.tree({
                lines: true,
                checkbox: true,
                cascadeCheck: true,
                lines: false,
                url: authTreeUrl,
                onLoadSuccess:function(node,data){
                    ddAuthTree.find("ul >li:not(:has(ul))").css('float', 'left');   // 选择最后一个节点 并添加 float:left
                    ddAuthTree.find("ul >li:has(ul)").css('clear', 'both');         // 给非最后节点添加 clear:both 
                },
                onClick: function (node) {

                }
            });
原文地址:https://www.cnblogs.com/wuyifu/p/4101421.html