\usepackage{array} \newcolumntype{b}{>{\global\let\currentrowstyle\relax}} \newcolumntype{t}{>{\currentrowstyle}} \newcommand{\rowstyle}[1]{% \gdef\currentrowstyle{#1}% #1\ignorespaces } %具体使用 \begin{tabular}{|bc|tc|tc|} \hline \rowstyle{\bfseries} A & B & C\\ simple & ... & ...\\ \end{tabular}
通过修饰各个具体表列,达到修饰整个row的目的。
主要是为了减少依赖和代码。