b*********n 发帖数: 1258 | 1 就像\cline{3-5}那样
不过是竖着的
谢谢 | T*******n 发帖数: 493 | 2 \documentclass{article}
\newcommand{\mc}[0]{\multicolumn}
\begin{document}
A vertical line belongs to the column to its left, except that the
left most vertical line belongs to the first column, so the first
column controls two vertical lines. You can then use
\verb|\multicolumn{}{}{}| to change things.
\begin{center}
\begin{tabular}{|c|c|c|}
\hline
x & y & z \\ \hline
\mc{1}{c|}{x} & y & z \\ \hline
\mc{1}{|c}{x} & y & |
|