如何将单元格内容居中放置在左侧中心

如何将单元格内容居中放置在左侧中心

怎么做?使用下面的代码。

\documentclass{article}
\usepackage{array}
\usepackage{longtable}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\begin{document}
\begin{longtable}{| c | m{150pt} | p{150}|}
  \hline
 1 & one & one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one  \\ \hline
  2 & two  & two two two two two two two two one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one \\ \hline
  3 & three  & three \\ \hline
\end{longtable}
\end{document}

在此处输入图片描述

答案1

简单:使用两种m列类型,而不是一种:

    \documentclass{article}
    \usepackage{array}
    \usepackage{longtable}
    \usepackage[T2A]{fontenc}

    \begin{document}

    \begin{longtable}{| c | m{150pt} | m{150pt}|}
      \hline
     1 & one & one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one \\ \hline
      2 & two & two two two two two two two two one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one one \\ \hline
      3 & three & three \\ \hline
    \end{longtable}

    \end{document} 

在此处输入图片描述

相关内容