DataGrid
奇数/偶数行の背景色が異なるGWT (CellTable) があります。
.dataGridEvenRow { background: white !important; }
.dataGridEvenRowCell { border: selectionBorderWidth solid white !important; }
.dataGridOddRow { background: red !important; }
.dataGridOddRowCell { border: selectionBorderWidth solid red !important; }
選択時に境界線の色のみを変更したいのですが、背景は変更しないでください。しかし、次のようにスタイルを使用している場合、背景 IS は常に ' white
' に変更されます。
/* Here something must be wrong */
.dataGridSelectedRow {
background: inherit !important;
color: inherit !important;
}
それが細胞の内部背景です。しかし、奇数/偶数行から継承するのではなく、どういうわけか他の場所から継承します...