答案1
你的方向是正確的,你只需要在影像之間插入空白行。擴展並稍微修正您的程式碼片段:
\documentclass{beamer}
\begin{document}
\begin{frame}
Some text
\begin{center}
\only<2> {\includegraphics[width=0.8\linewidth]{example-image-a}}
\only<3> {\includegraphics[width=0.8\linewidth]{example-image-b}}
\end{center}
\end{frame}
\end{document}
應該按預期工作。
答案2
如果沒有另外定義,Beamer 會將內容垂直居中放置。基於此,您可以使用內容從頂部開始的選項。
\begin{frame}[t]
Contents
\end{frame}