答案1
答案2
\cline
已经有答案了。这个答案是为了说明和的效果\multicolumn{1}{c}{}
。我建议你在提问时给出一个最小的工作示例。
\documentclass{article}
\usepackage{array}
\usepackage{xcolor}
\begin{document}
\setlength{\parindent}{0pt}
Normal tabular\\[1em]
\begin{tabular}{|*3{c|}}
\hline
a & b & c\\
\hline
d & e &\\
\hline
f & &\\
\hline
\end{tabular}\\[1em]
Tabular using \verb|\cline|\\[1em]
\begin{tabular}{|*3{c|}}
\hline
a & b & c\\
\hline
d & e &\\
\cline{1-2}
f & &\\
\cline{1-1}
\end{tabular}\\[1em]
Tabular using \verb|\cline| and \verb|\multicolumn|\\[1em]
\begin{tabular}{|*3{c|}}
\hline
a & b & c\\
\hline
d & e & \multicolumn{1}{c}{}\\
\cline{1-2}
f & \multicolumn{1}{c}{} & \multicolumn{1}{c!{\color{red}\vrule width 2pt}}{}\\
\cline{1-1}
\end{tabular}
\end{document}