摘要 |
In order to avoid the problem of multiple lines of data not being able to be displayed clearly in a tree structure in a method and a device for displaying a tree structure list with nodes having multiple lines of content, the tree node information is read from the database when a user requests the display of a page. Information such as the line width of the tree node content are calculated and set according to the predetermined length of the content to be displayed in each line on the page and the information of the tree node read from the database. The content of the tree node are written into the page according to the aforementioned parameters. If all of the tree node content cannot be displayed in one line, the content is continually displayed in another line and the tree node is visually marked at the tree node. The marks of the tree nodes are automatically connected together in layers using lines. The content thus is displayed in multiple lines in a tree structure list, and the trunk lines between nodes will not be broken, which allows a user to view the node content in the tree structure list more clearly.
|