压缩ui-网格table
Condensed ui-grid table
将 bootstrap 之类的 table 压缩到 ui- 网格 table 中的最佳方法是什么?
我试过 .ui-grid-cell
's height
and .ui-grid-cell-contents
' padding
但是滚动与大小不匹配并且在编辑单元格时会导致奇怪的行为。
有什么想法吗?
您不应通过更改 css
来编辑行高,因为它的样式是实时计算的。
您可以更改 gridOptions.rowHeight
然后一切正常。
您可以更改填充和字体大小,正如您在 this plunker 中看到的那样,我在其中更改了 rowHeight
和 padding/font-size。
您可以在官方文档中查看有关 rowHeight
的更多信息,here。
将 bootstrap 之类的 table 压缩到 ui- 网格 table 中的最佳方法是什么?
我试过 .ui-grid-cell
's height
and .ui-grid-cell-contents
' padding
但是滚动与大小不匹配并且在编辑单元格时会导致奇怪的行为。
有什么想法吗?
您不应通过更改 css
来编辑行高,因为它的样式是实时计算的。
您可以更改 gridOptions.rowHeight
然后一切正常。
您可以更改填充和字体大小,正如您在 this plunker 中看到的那样,我在其中更改了 rowHeight
和 padding/font-size。
您可以在官方文档中查看有关 rowHeight
的更多信息,here。