【发布时间】:2017-08-19 00:54:11
【问题描述】:
问题:
我有一张水平打印的表格,但我希望它改为垂直打印。任何人都可以就如何实现这一点提供指导?
PHP 代码
<?php
echo "<th>EKDA</th>";
echo "<th>C1</th>";
echo "<th>C2</th>";
echo "<th>C3</th>";
echo "<th>Nilai</th>";
echo "<th>Rank</th>";
echo "<tr>";
echo "<th>Vektor Eigen</th>";
for($tmbbb=0; $tmbbb<=2; $tmbbb+=1)
{
echo "<td>$BPK2[$tmbbb]</td>";
}
echo "</tr><tr>";
echo "<th>A1</th>";
{
for($tmb=0; $tmb<=1; $tmb+=1)
echo "<th>$TAAAC1[$tmb]</th>";
}
echo "</tr><tr>";
echo "<th>A2</th>";
echo "</tr>";
?>
当前输出 Curent output 期望的输出: Desired output
【问题讨论】:
-
我使用循环...
-
不需要循环。建立你的桌子通常是“水平的”。并仅使用链接中的问题中的 2 行 CSS。
-
考虑第二个高票 answer 的问题