如何获取一个jstree节点来显示长的,可能是多行的内容? [英] How do I get a jstree node to display long, possibly multiline content?
本文介绍了如何获取一个jstree节点来显示长的,可能是多行的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用 jsTree插件时,我需要一个节点来显示其完整内容。现在,节点只显示大约一行文本。如何获取jsTree中的节点以显示节点中的所有文本,而不截断节点的内容?
When using the jsTree plugin, I need to have a node which displays its full content. Right now, the nodes only display approximately one line of text each. How can I get the nodes in a jsTree to display all of the text in the node without truncating the node's content?
推荐答案
下面的CSS代码将会做到:
The following CSS code will do the trick:
.jstree-default a {
white-space:normal !important; height: auto;
}
.jstree-anchor {
height: auto !important;
}
.jstree-default li > ins {
vertical-align:top;
}
.jstree-leaf {
height: auto;
}
.jstree-leaf a{
height: auto !important;
}
这是对解决方案的修改在这里(高度变更为 auto
)和这里,两者都不适合我自己。
This is a modification of the solutions here (height changed to auto
) and here, neither of which worked for me on their own.
这篇关于如何获取一个jstree节点来显示长的,可能是多行的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文