我正在使用 Cobalt 8 CMS,以前的文章布局非常简单地由表格设计。
我在下面添加了一个示例。转换所有表格(并学习如何)的想法令人生畏,但我想做最好的事情。表格字段显示提交表单的结果。多行和多列的混合,以及两者的一些跨越。
我现在也在使用 Joomla 3,所以也许 divs 是更好的选择。
我很感激你的建议,
例子:
<table id='display' width=648 border=0 summary="">
<tr>
<td rowspan=7 width=228><?php echo $item->fields_by_id[3]->result; ?></td>
<td width=200><b>Author:</b></td>
<td width=220><?php echo $item->fields_by_id[1]->result; ?></td>
</tr>
<tr>
<td width=200><b>Publisher:</b></td>
<td width=220><?php echo $item->fields_by_id[2]->result; ?></td>
</tr>
<tr>
<td width=200><b>Genre:</b></td>
<td width=220><?php echo $item->fields_by_id[9]->result; ?></td>
</tr>
<tr>
<td width=200><b>CRR Heat Rating:</b></td>
<td width=220 width=420><?php echo $item->fields_by_id[11]->result; ?></td>
</tr>
<tr>
<td colspan=2 width=420><?php echo $item->fields_by_id[12]->result; ?>
</td>
</tr>
<tr>
<td colspan=2 width=420><?php echo $item->fields_by_id[10]->result; ?>
</td>
</tr>
<tr>
<td colspan=2 width=420><?php echo $item->fields_by_id[13]->result; ?>
</td>
</tr>
<tr>
<td colspan=3 width=648><?php echo $item->fields_by_id[4]->result; ?></td>
</tr>
<tr>
<td colspan=3 width=648><?php echo $item->fields_by_id[5]->result; ?></td>
</tr>
</table>