代码:
\documentclass[11pt]{article}
\usepackage{xcolor}
\usepackage{array}
\usepackage{colortbl}
\usepackage{multirow}
\usepackage{makecell}
\renewcommand\arraystretch{1.5}
\begin{document}
\begin{center}
\begin{tabular}{|>{\columncolor[gray]{0.9}\raggedleft\arraybackslash}m{6cm}|>{\centering\arraybackslash}m{6cm}|}
\hline
\multicolumn{2}{|m{12cm}|}{\cellcolor{cyan!40}\Large\textbf{The
quick brown fox jumps over the lazy dog. The quick brown fox
jumps over the lazy dog}}\\\hline
First & Value 1\\\hline
Second & Value 2\\\hline
Third & Value 3\\\hline
\end{tabular}
\end{center}
\end{document}
问题是我无法消除右边的空白:
答案1
您的多列跨度不如其跨越的列宽,颜色只是使其更清晰
使用\multicolumn{2}{|m{\dimexpr 12cm+2\tabcolsep+\arrayrulewidth }|}
,以便它跨越柱间材料