【发布时间】:2018-03-20 14:12:02
【问题描述】:
我试过这样做,但最大的问题是 foreach 在这里我有照片: Problem
这是代码,但仍有问题:
<div class="row">
<table class="table table-bordered table-striped table-highlight">
<tbody>
<tr height="100">
<td rowspan="6" height="120" width="3%" style="vertical-align: middle;">
<p style="white-space: nowrap;writing-mode: vertical-lr;transform: rotate(180deg);font-weight: bold;"><font >Here is my title </font></p>
</td>
<td colspan="3">
<font>Name</font>
</td>
<td width="64">
<font>Article</font>
</td>
<td width="64">
<font>Price</font>
</td>
<td width="64">
<font>Date</font>
</td>
</tr>
<tr height="20">
<td colspan="3" rowspan="5" height="120" ></td>
<td rowspan="5" style="vertical-align: top;"></td>
<td rowspan="5" style="vertical-align: top;"></td>
<td rowspan="5" style="vertical-align: top;"></td>
</tr>
<tr height="15">
</tr>
<tr height="15">
</tr>
<tr height="15">
</tr>
<tr height="15">
</tr>
</tbody>
</table>
</div>
我该怎么做才能在我使用 foreach 时插入新的 td 和垂直 Here is my title 会在那里?
【问题讨论】:
-
服务器端(哪种语言)?还是客户端?您要使用
foreach插入的数据在哪里? -
@Taki 对不起,我忘记了。是 php 和数据来自数据库到这个表中。
-
只是想说表头有一个标签
<th>。放在<tbody>之前
标签: php html css html-table