在dynatree中从右到左设置

时间:2013-11-25 05:45:16

标签: jquery dynatree

如何在

中更改从右到左的设置
  

dynatree?

 <div id="tree" style="text-align:right;"></div>

我使用text-align但所有节点都显示在页面右侧。 像这样: my tree

1 个答案:

答案 0 :(得分:0)

我找到了我的答案:

 onPostInit: function () {
                // Set RTL attribute on init
                this.$tree.find("ul.dynatree-container").attr("DIR", "RTL").addClass("dynatree-rtl");
            }