0

我正在尝试修改 DataGrid 中的 Textsize。

我可以设置颜色和字体重量,但不能设置大小。为什么不?为什么我无法覆盖大小?

代码:

        measResultTable.setRowStyles(new RowStyles<MeasResultOverviewEntry>()
        {
            @Override
            public String getStyleNames(MeasResultOverviewEntry entry, int rowIndex)
            {
                return "measResultRow";
            }
        });

CSS:

.measResultRow 
{   
        font-size: 2em; !important;
        color: red;
        font-weight: bold; !important;
}

任何想法为什么应用颜色和字体粗细但不应用字体大小?

问候,范达伦

4

1 回答 1

0
.meaResultRow{   
   font-size: 2em !important;
   color: red;
   font-weight: bold !important;
}

您可能important写错了地方,如果仍然不正确,您可以尝试px定义字体并检查它是否有效。

于 2013-04-26T08:11:18.290 回答