How do I style a GWT FlexTable using only CSS? The API mentions nothing about which CSS classes are available.

Aren't there any classes and do I have to set them myself?

I would for instance like to do styling on "th".

有帮助吗?

解决方案

FlexTable (which extends HTMLTable) doesn't appear to apply any particular styles the cells it contains. There are two possible solutions:

  1. Apply a style to the enclosing FlexTable and use descendent selectors (.myFlexTable th {}) to style the cells.
  2. Use a CellFormatter to add your own style names to cells in the FlexTable.
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top