I referenced the code from https://www.tablesgenerator.com/ and set the cell color. But I found the cell border disappeared in generated table.
code:
% Please add the following required packages to your document preamble:
% \usepackage{multirow}
% \usepackage[table,xcdraw]{xcolor}
% If you use beamer only pass "xcolor=table" option, i.e. \documentclass[xcolor=table]{beamer}
\begin{table}[]
\begin{tabular}{|ccc|c|c|c|}
\hline
\rowcolor[HTML]{C0C0C0}
\multicolumn{3}{|c|}{\cellcolor[HTML]{C0C0C0}Package} & \cellcolor[HTML]{C0C0C0} & \cellcolor[HTML]{C0C0C0} & \cellcolor[HTML]{C0C0C0} \\ \cline{1-3}
\rowcolor[HTML]{C0C0C0}
\multicolumn{1}{|c|}{\cellcolor[HTML]{C0C0C0}QFP100} & \multicolumn{1}{c|}{\cellcolor[HTML]{C0C0C0}QFP64} & QFP48 & \multirow{-2}{*}{\cellcolor[HTML]{C0C0C0}Name} & \multirow{-2}{*}{\cellcolor[HTML]{C0C0C0}Digital Function} & \multirow{-2}{*}{\cellcolor[HTML]{C0C0C0}Analog Function} \\ \hline
\multicolumn{1}{|c|}{1} & \multicolumn{1}{c|}{1} & 1 & A & A & - \\ \hline
\multicolumn{1}{|c|}{2} & \multicolumn{1}{c|}{2} & 2 & B & B & - \\ \hline
\end{tabular}
\end{table}
I tried replaceing \cline{1-3} with hhline{---}, but the result was also problematic

Another problem, when zoom to 80%, more borders are no longer displayed

If the cell color is not set, there is no problem with the above

Thanks




|ccc|c|c|c|to|c|c|c|c|c|c|and then remove all these\multicolumn{1}{...}{...}since they are not necessary. Finally, changing\\ \cline{1-3}to\\[-.4pt] \hhline{---~~~}should do the trick. – Jasper Habicht May 10 '23 at 09:22