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.
我尝试通过将样式设置treecols为. 然而,树视图行的标签也消失了。如何在保持行可见的同时隐藏 treecols?treeviewdisplay: none
treecols
treeview
display: none
我猜tree你的意思是隐藏元素中的列标题。该tree元素支持隐藏单个列,因此当您display: none在列标题上使用样式时,整个列都会被隐藏。相反,您应该height: 0px; overflow: hidden;在元素上使用样式treecols- 从技术上讲,它不会被隐藏,但它也不会在屏幕上可见。
tree
height: 0px; overflow: hidden;