\begin{table*}
\hfill{}
\begin{tabularx}{150mm}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
\multicolumn{3}{|c|}{\multirow{2}{*}{Input Parameters}} & \multicolumn{4}{|c|}{$\pi$ = 0.2} & \multicolumn{4}{|c|}{$\pi$ = 0.5} & \multicolumn{4}{|c|}{$\pi$ = 0.8} \\
\cline {4-15}
\multicolumn{3}{|c}{} & \multicolumn{2}{|c}{Existing} & \multicolumn{2}{|c}{MAHA } & \multicolumn{2}{|c}{Existing } & \multicolumn{2}{|c}{MAHA} & \multicolumn{2}{|c|}{Existing } & \multicolumn{2}{|c|}{MAHA}\\
\hline
\rotatebox[origin=c]{90} {Migration Status} & \rotatebox[origin=c]{90}{Migration Size} & \rotatebox[origin=c]{90}{Interaction Size} & \rotatebox[origin=c]{90}{SimT} & \rotatebox[origin=c]{90}{$\Delta$SimT} & \rotatebox[origin=c]{90}{SimT} & \rotatebox[origin=c]{90}{$\Delta$SimT} & \rotatebox[origin=c]{90}{SimT} & \rotatebox[origin=c]{90}{$\Delta$SimT} & \rotatebox[origin=c]{90}{SimT} & \rotatebox[origin=c]{90}{$\Delta$SimT} & \rotatebox[origin=c]{90}{SimT} & \rotatebox[origin=c]{90}{$\Delta$SimT} & \rotatebox[origin=c]{90}{SimT} & \rotatebox[origin=c]{90}{$\Delta$SimT} \\
\hline
\end{tabularx}
\end{table*}
答案1
您可能正在寻找以下内容:
对于tabularx
环境,您至少需要使用一X
列:
\begin{table*}
\begin{tabularx}{150mm}{|*{15}{>{\centering\arraybackslash}X|}}
\hline
\multicolumn{3}{|c|}{\multirow{2}{*}{Input Parameters}}
& \multicolumn{4}{c|}{$\pi$ = 0.2}
& \multicolumn{4}{c|}{$\pi$ = 0.5}
& \multicolumn{4}{c|}{$\pi$ = 0.8} \\
\cline {4-15}
\multicolumn{3}{|c|}{}
& \multicolumn{2}{c|}{Existing}
& \multicolumn{2}{c|}{MAHA }
& \multicolumn{2}{c|}{Existing }
& \multicolumn{2}{c|}{MAHA}
& \multicolumn{2}{c|}{Existing }
& \multicolumn{2}{c|}{MAHA}\\
\hline
\rotatebox[origin=c]{90} {\ Migration Status\ }
& \rotatebox[origin=c]{90}{Migration Size} & \rotatebox[origin=c]{90}{Interaction Size}
& \rotatebox[origin=c]{90}{SimT} & \rotatebox[origin=c]{90}{$\Delta$SimT}
& \rotatebox[origin=c]{90}{SimT} & \rotatebox[origin=c]{90}{$\Delta$SimT}
& \rotatebox[origin=c]{90}{SimT} & \rotatebox[origin=c]{90}{$\Delta$SimT}
& \rotatebox[origin=c]{90}{SimT} & \rotatebox[origin=c]{90}{$\Delta$SimT}
& \rotatebox[origin=c]{90}{SimT} & \rotatebox[origin=c]{90}{$\Delta$SimT}
& \rotatebox[origin=c]{90}{SimT} & \rotatebox[origin=c]{90}{$\Delta$SimT} \\
\hline
\end{tabularx}
\end{table*}