\begin{block}{ }
\begin{itemize}{}\scriptsize
\item[($-$)] abcd
\item[($-$)] dasdw
\end{itemize}
\end{block}
\begin{block}{ }
\begin{itemize}{}\scriptsize
\item[($-$)] abcd
\item[($-$)] dasdw
\end{itemize}
\end{block}
我有两个块想要更改单个块的背景颜色。在此阶段,其他块不应受到影响。我尝试使用新变量进行定义,但仍然有错误
\newenvironment{variableblock}[3]{%
\setbeamercolor{block body}{#2}
\setbeamercolor{block title}{#3}
\begin{block}{#1}}{\end{block}}
\begin{variableblock}{Title}{bg=blue,fg=white}{bg=green,fg=red}
Body
\end{variableblock}