
尝试了raggedright begin{flushleft} 都没有用,只有leftline强制左对齐有用。但是用leftline会使目录“参考文献”那一行强制占满一行

页码“12”和其他页码就没有对齐

如果仅仅只是想“使ctexart类型的“参考文献”四个字居左对齐”的话...你可以试试这个。
thebibliography在article.cls的定义为:
\newenvironment{thebibliography}[1]
     {\section*{\refname}%
      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
      \list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}可见所谓的"参考文献"实际上就是\section*{},其理应与\section保持相同的样式。
下面的例子会同步修改section的样式左对齐。
\documentclass{ctexart}
\ctexset{section/format+=\raggedright}
\usepackage{tocbibind}
\begin{document}
\tableofcontents\clearpage
\section{章节}
\section{章节}
\section{章节}
\section{章节}
这是一个简单的引用示例1234546\cite{article-minimal}。
\bibliographystyle{plain} % 设置参考文献样式
\bibliography{xampl} % 引用参考文献数据库
\end{document}