答案1
第二个例子(或者至少是类似的例子)对于嵌套的tcolorboxes
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[most]{tcolorbox}
\usepackage{inconsolata}
\tcbset{
every box/.style={notitle, fontupper=\ttfamily,
sharp corners, boxrule=0pt, leftrule=.5mm, rightrule=.5mm},
every box on layer 1/.style={every box, colback=white},
every box on layer 2/.style={every box, colback=blue!10, colupper=blue!70!black, colframe=blue!70!black},
every box on layer 3/.style={every box, colback=red!10, colupper=red!70!black, colframe=red!70!black},
every box on layer 4/.style={every box, colback=green!10, colupper=green!70!black, colframe=green!70!black},
}
\begin{document}
\begin{tcolorbox}
Welcome to the Quote Colors site!
\begin{tcolorbox}
You can choose between three quoting modes as shown here.
\begin{tcolorbox}
So what's this?
\begin{tcolorbox}
Just a stupid example to demonstrate the options in Quote Colors\dots
\end{tcolorbox}
\end{tcolorbox}
\end{tcolorbox}
Have fun!
\end{tcolorbox}
\end{document}