Vaadin网格行高 [英] Vaadin Grid row height
本文介绍了Vaadin网格行高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想减少单元格大小,以便在屏幕中适应更多行。
[screen] [1]
到目前为止我使用了
I want to reduce cell size so to fit more rows in screen. [screen][1] so far i have used
.v-grid-cell {
font-size: 13px;
height: 18px;
vertical-align: middle;
}
.v-grid-row{
height: 18px;
}
.v-grid-row-odd {
height: 18px;
background-color: #EFF0F1;
}
和[result] [2]
and the [result][2]
推荐答案
尝试在上设置
: line-height
.v-grid-cell
Try setting a line-height
on .v-grid-cell
:
.v-grid-cell {
line-height: 18px;
}
这不是一个真正的Sass问题, CSS。
This isn't really a Sass question though, it's just general plain 'ol CSS.
这篇关于Vaadin网格行高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文