解释不好,直接上代码,请看图理解
\begin{table}
\caption{ Experimental results of eye area ratio in normal state and fatigue state:}\centering
\renewcommand{\multirowsetup}{\centering}
\begin{tabular}{|c|c|c|c|c|c|c|}%我的表格有七列
\hline%画一条横线
\multirow{2}*{}%合并行
&\multicolumn{2}{c|}{Real Situation}&\multicolumn{4}{c|}{Test Result}\\%合并俩列,并填入内容,合并并四列,并填入内容
\cline{2-7}%从第2到第七列填写表格
&\multirow{2}{1.8cm}{Closed Eyes Number} &\multirow{2}{1.8cm}{Closed Eyes Ratio} &\multirow{2}{1.8cm}{Closed Eyes Number} &\multirow{2}{1.5cm}{Accuracy Rate} & \multirow{2}{1.3cm}{Lose Number} & \multirow{2}{1.8cm}{Closed Eyes Ratio} %合并俩行,设置宽度,填入内容
\\&&&&&&\\%写入空白,这个很重要,要不然表格很奇怪,不明所以
\hlinevideo 1 & 6 & 6.0\% & 11 & 93.7\%&5 &11.58\% \\
\cline{1-7}
video 2& 8 & 8.0\% & 20 & 88.0\%& 10&22.22\%\\
\hline
video 3& 13 & 13\% & 7 & 94.0\% &2& 7.1\%\\
\hline
video 4 & 53 & 53\% & 56 & 97.0\% &0&56.0\%\\
\hline
video 5 & 68 & 68\% & 66 & 98.0\%&1 &66.67\%\\
\hline
video 6 & 76 & 76\% & 78 & 98.0\% &0&78.0\%\\
\hline
video 7 & 80 & 80\% & 89 & 91.0\% &0&89.0\%\\
\hline
\end{tabular}
\end{table}