答案1
下面是基于以下解决方案的示例tabularx
:
\documentclass{article}
\usepackage{array, booktabs, tabularx, caption}
\usepackage[table, svgnames]{xcolor}
\begin{document}
\begin{table}
\centering\captionsetup{labelfont=sc, skip=6pt}
\caption{A table}
\begin{tabularx}{0.67\linewidth}{|*{3}{>{\centering\arraybackslash}X|}}
\hline
\rowcolor{Lavender!60}A & B & C \\%
\hline
\end{tabularx}\\[-1.1pt]
\rowcolors{1}{Yellow!10}{Yellow!10}
\begin{tabularx}{0.67\linewidth}{|*{5}{>{\centering\arraybackslash}X|}}
a & b & c & d & e \\
\hline
s & t & u & v & w \\
\hline
\end{tabularx}\\[-1.1pt]%
\begin{tabularx}{0.67\linewidth}{|*{3}{>{\centering\arraybackslash}X|}}
\rowcolor{Lavender!60} A & B & C \\
\hline
\end{tabularx}\\[-1.1pt]
\begin{tabularx}{0.67\linewidth}{|*{5}{>{\centering\arraybackslash}X|}}
a & b & c & d & e \\
\hline
s & t & u & v & w \\
\hline
\end{tabularx}
\end{table}
\end{document}