有两行。第一个有三个文本(A,B和C)位于垂直线下方。第二个有四个单元格和集中文本。
A B C
| text | text | text | text |
你可以在标题行中使用一些\phantom
s并在\makebox[2\tabcolsep]
中设置垂直行标题:
\documentclass{article}
\begin{document}
\begin{tabular}{ | *{4}{c|} }
\multicolumn{4}{ c }{%
\phantom{textA}%
\makebox[2\tabcolsep]{A}%
\phantom{textAB}%
\makebox[2\tabcolsep]{B}%
\phantom{textABC}%
\makebox[2\tabcolsep]{C}%
\phantom{textABCD}
} \\
textA &
textAB &
textABC &
textABCD
\end{tabular}
\end{document}