答案1
使用multicolumn
\documentclass{article}
\begin{document}
\begin{tabular}{|c|c|c|c|}\hline
\multicolumn{2}{|c|}{A} & \multicolumn{2}{|c|}{B}\\\hline
C&D&E&F\\\hline
1&2&3&4\\\hline
5&6&7&8\\\hline
\end{tabular}
\end{document}
使用multicolumn
\documentclass{article}
\begin{document}
\begin{tabular}{|c|c|c|c|}\hline
\multicolumn{2}{|c|}{A} & \multicolumn{2}{|c|}{B}\\\hline
C&D&E&F\\\hline
1&2&3&4\\\hline
5&6&7&8\\\hline
\end{tabular}
\end{document}