答案1
您必须重新定义该\subsection
命令。
\documentclass[sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\name{John}{Doe}
\title{Title}
\makeatletter
\RenewDocumentCommand{\subsection}{sm}{%
\par\addvspace{1ex}%
\phantomsection{}% reset the anchor for hyperrefs
\addcontentsline{toc}{subsection}{#2}%
\strut\subsectionstyle{#2}%
\par\nobreak\addvspace{.5ex}\@afterheading}% to avoid a pagebreak after the heading
\makeatother
\begin{document}
\maketitle
\section{Section}
\subsection{Subsection 1}
\end{document}