Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 GXT ToolTipConfig 中获得多行?
我在 ToolTipConfig 的标题中有一个长文本。我怎样才能把它分成多行?
Try setting up this wordwrap css property attribute to the ToolTip titles html tag.
div.test {word-wrap:break-word;}
http://www.w3schools.com/cssref/css3_pr_word-wrap.asp
我想,这就是你需要的:
ToolTipConfig config = new ToolTipConfig(); config.setMaxWidth(300);
因此,工具提示将为您移动线条。