答案1
请检查以下 MWE:
\documentclass{beamer}
\usetheme{Warsaw}
\makeatletter
\setbeamertemplate{headline}{}
\addtobeamertemplate{headline}{}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2pc,left]{}
\colorbox{green}{\hbox to 5pc{\vbox to 2pc{}}}
\end{beamercolorbox}}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2pc,right]{}
\colorbox{red}{\hbox to 5pc{\vbox to 2pc{}}}
\end{beamercolorbox}%
\vskip0pt%
}
\makeatother
\begin{document}
\section{Section}
\subsection{Subsection}
\begin{frame}
\frametitle{Frame title}
\end{frame}
\end{document}
在这里您可以用 来更改和\colorbox{green}{\hbox to 5pc{\vbox to 2pc{}}}
。您还可以通过更改 来更改高度。\colorbox{red}{\hbox to 5pc{\vbox to 2pc{}}}
\includegraphics{...}
ht=2pc