如何在
中更改从右到左的设置dynatree?
<div id="tree" style="text-align:right;"></div>
我使用text-align但所有节点都显示在页面右侧。 像这样: my tree
答案 0 :(得分:0)
我找到了我的答案:
onPostInit: function () {
// Set RTL attribute on init
this.$tree.find("ul.dynatree-container").attr("DIR", "RTL").addClass("dynatree-rtl");
}