减少角形材料树中的线高 [英] Reducing line height in angular material tree

查看:44
本文介绍了减少角形材料树中的线高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用角度树材料来显示JSON数据,但我不满意通过行之间的白色间距的数量.我试过在css中使用mat-tree-node.line-height进行零更改.如何减少所有这些垂直空白?

I am using a angular tree material to display JSON data, I am unsatisfied by the amount of white spacing there is between lines. I have tried playing with mat-tree-node.line-height in the css with zero changes. How can I reduce all this vertical white space?

推荐答案

只需覆盖其CSS:

.mat-tree-node { min-height: 30px }

这篇关于减少角形材料树中的线高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆