我想向不同的行添加不同的样式,哪种方式最好?
我正在尝试(它不起作用,没有错误,但没有更改):
公共接口StatiscticsTableResources扩展ClientBundle {
public static final StatiscticsTableResources INSTANCE = GWT.create(StatiscticsTableResources.class);
@Source("StatisticsTableCss.css")
StatisticsTableCss css();}
公共接口StatisticsTableCss扩展CssResource {
String tableOddRow();}
.tableOddRow {背景颜色:#aeaaa2 2;颜色:蓝色;}
ftStatistics.getRowFormatter().addStyleName(i,StatiscticsTableResources.INSTANCE.css().tableOddRow());
发布于 2010-03-04 03:30:53
胡思乱想,你忘了注入样式表。在应用样式的类顶部的某个位置,添加以下一行:
static { StatisticsTableResources.INSTANCE.css().ensureInjected(); }https://stackoverflow.com/questions/2376119
复制相似问题