Append custom style to a GWT CellTable (in this case all cells)
问题 I have a case where I want to append white-space: nowrap; to the style of each cell in my CellTable. Currently it applies to all tables, but it would be nice to know both have to apply it for a specific CellTable, and all CellTables. 回答1: CellTables have their own CssResource. To override this style applied to all cells in a cellTable, create a new css file : /* Incremental changes from CellTable.css */ .cellTableCell { white-space: nowrap; } Then create your own CellTable.Resources interface