在网上找了好久,都是使用
\setlength{\tabcolsep}{7mm}{XXXX}
\resizebox{\textwidth}{15mm}{XXXX}
这两种方法,然而都没有解决我的问题,
最后使用\scalebox解决问题
\begin{table}
\centering
% scalebox{0.6}代表缩小到0.6,可以手动调节
\scalebox{0.6}{
\begin{tabular}{|c|c|c|}
\toprule
\cmidrule(r){1-2}
Name & Description & Size () \\
\midrule
Dendrite & Input terminal & 2 \\
Axon & Output terminal &3 \\
Soma & Cell body & 4\\
\bottomrule
\end{tabular}
}
\caption{hello world}}
\label{tabel}
\end{table}