1

我需要使用图像作为表格背景(因为整行背景都可以)。我试过这个:

.cellTableOddRow {
    background-image: url(image.jpg);
    background-repeat: repeat-y;
    width: 300px;
}

但它将图像放在每个单元格中。这可能吗?

多谢!

4

1 回答 1

0

这真的很简单:

图像应该在“cellTableWidget”中

.cellTableWidget {
    background-image: url(../img/bgtablas.jpg);
    background-repeat: repeat-y;
    width: 300px;
}

并且该行必须“删除”其样式:

.cellTableOddRow {
    background: none;
    background-image: none;
}
于 2012-03-15T05:00:51.197 回答