In latex, use the \caption command to add captions to tables,
and use \begin{table} and \end{table} to create table environments.
By default, LaTeX will place the table titles above the table.
If you wish to place the table's caption below the table,
you can use the \caption command to add the caption at a position inside the table's environment.
The specific method is as follows:
\begin{
table}
\centering
\begin{
tabular}{
|c|c|}
% 表格内容
\end{
tabular}
\caption{
这是一个表格}
\end{
table}
In the example, the \caption command is placed after \begin{tabular} and \end{tabular},
which places the table caption below the table.
In other words, as long as we move the position of the \caption command, we can control the position of the caption, what you see is what you get.