答案1
使用包valign
中的选项adjustbox
:
\documentclass[paper=a5]{scrreprt}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage[export]{adjustbox}
\begin{document}
\begin{tabularx}{\linewidth}{l X}
Laptop & \rule{2cm}{3cm} \\
Laptop & \includegraphics[width=2cm,valign=t]{example-image} \\
\end{tabularx}
\end{document}