
在LaTeX中使用colortbl和cline套件時,通常會發現框線被顏色擋住,如上圖。這時候要如何解決框線的問題,答案很簡單,就是在各列中再加上一個個空白列。指令如下請參閱。
\begin{center}
\begin{tabular}
{|p{2.5cm}|p{3cm}|p{2cm}|p{3cm}|p{4cm}|} \hline
  \cellcolor[gray]{.9} 姓名  & 戴忠淵 &  \cellcolor[gray]{.9}性別 &  男 & \raisebox{-6.00ex}[0cm][0cm]{} \\[8pt] \cline{1-4}  
&&&&\\[-19pt] \cline{1-1} 
 \cellcolor[gray]{.9} 身份證字號 &  T000000000 &  \cellcolor[gray]{.9}出生日期 &  民國63年1月10日 &  \\[8pt] \cline{1-4} 
  & \multicolumn{3}{p{9cm}|}{ } &\\[-19pt] \cline{1-1} 
 \cellcolor[gray]{.9}通訊地址 & \multicolumn{3}{p{9cm}|}{高雄市高雄市高雄市高雄市} &\\[8pt] \cline{1-4}  
  &&&&\\[-19pt] \cline{1-1} 
 \cellcolor[gray]{.9}聯絡電話 &  (07)0000000 &  \cellcolor[gray]{.9}手機 &  0000000000 &   \\[8pt] \cline{1-4}
  & \multicolumn{3}{p{9cm}|}{ } &\\[-19pt] \cline{1-1} 
 \cellcolor[gray]{.9} Email &  \multicolumn{3}{p{9cm}|}{chungyuandye@gmail.com} &
  \\[8pt]
\hline
\end{tabular}
\end{center}

 
讀者回應 ( 0 意見 )
訂閱發佈留言 (Atom)
 
發佈留言
Please leave your name and tell me what you thought about this site. Comments, suggestions and views are welcomed.
如果這篇文章對你有幫助,那請留個訊息給我~