仅使用 CSS 设置 GWT FlexTable 样式

发布于 2024-10-18 22:07:14 字数 247 浏览 8 评论 0原文

如何仅使用 CSS 设计 GWT FlexTable 样式? API< /a> 没有提及哪些 CSS 类可用。

没有课程吗,我必须自己设置吗?

例如,我想对“th”进行造型。

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".

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撩人痒 2024-10-25 22:07:14

FlexTable(扩展HTMLTable) 似乎没有应用它包含的单元格的任何特定样式。有两种可能的解决方案:

  1. 将样式应用于封闭的 FlexTable 并使用后代选择器 (.myFlexTable th {}) 来设置单元格的样式。
  2. 使用 CellFormatter 将您自己的样式名称添加到 FlexTable 中的单元格中。

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.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文