Я пытаюсь растянуть фоновое изображение на 2 строки таблицы, но это не работает.
HTML:
<table id="branchTable">
<thead>
<th align="center">Tel.</th>
<th align="center">Fax</th>
<td rowspan="2" id="branch-logo"> d</td>
</thead>
<tbody>
<td align="center">${_branch?.tel}</td>
<td align="center">${_branch?.fax}</td>
</tbody>
</table>
CSS:
#branch-logo {
background-image: url(/public/images/logo.png);
height:53px;
width:100px;
background-repeat: no-repeat;
background-position: left;
}
Кажется, что изображение толкает ряд вниз, а не пересекает его.
ОБНОВЛЕНИЕ
<table id="branchTable">
<tr id="thead">
<th align="center">Tel.</th>
<th align="center">Fax</th>
<td rowspan="2" id="branch-logo"> d</td>
</tr>
<tr id="tbody">
<td align="center">${_branch?.tel}</td>
<td align="center">${_branch?.fax}</td>
</tr>
</table>
rowspan, похоже, не работает между tbody и thead. Использование tr помогает.
#branch-logo
нигде в опубликованном вами html. и ваша таблица имеет 1 строку. На самом деле, из-за неправильного формата HTML в нем вообще нет строк. - person Scott   schedule 05.02.2012