我正在尝试使用css将网格内文本的垂直对齐方式设置为居中:
.myGrid .x-grid3-cell {
vertical-alignment: middle !important;
}但是它不起作用!我已经尝试了其他的属性,比如row,body,already等等,我能做什么呢?
发布于 2015-05-29 18:23:28
如果GXT 2中提供了此功能,您可以尝试一下-
----- Options
HasVerticalAlignment.ALIGN_TOP
HasVerticalAlignment.ALIGN_MIDDLE
HasVerticalAlignment.ALIGN_BOTTOM
--- implementation
ColumnConfig<StateTestModel, String> column =
new ColumnConfig<StateTestModel, String>(gridProperties.name(), 150, "Name");
column.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);https://stackoverflow.com/questions/30483922
复制相似问题