答案1
可能有点太高了……
\documentclass[12pt]{article}
\usepackage{tcolorbox}
\begin{document}
\begin{itemize}
\item \begin{tcolorbox}[colback=black,box align=top]\textcolor{white}{How to get bullet to be at top of box?}\end{tcolorbox}
\end{itemize}
\end{document}
为了获得更精细的控制,可以将其与\raisebox
\documentclass[12pt]{article}
\usepackage{tcolorbox}
\begin{document}
\begin{itemize}
\item \raisebox{0.2cm}{\begin{tcolorbox}[colback=black,box align=top]\textcolor{white}{How to get bullet to be at top of box?}\end{tcolorbox}}
\end{itemize}
\end{document}
没有的版本box align=top
(但你必须知道你的盒子有多大):
\documentclass[12pt]{article}
\usepackage{tcolorbox}
\begin{document}
\begin{itemize}
\item \raisebox{-0.85cm}{\begin{tcolorbox}[colback=black]\textcolor{white}{How to get bullet to be at top of box?}\end{tcolorbox}}
\end{itemize}
\end{document}