我在 HTML 模板中使用此图像。
这是法国国旗(蓝色、白色、红色),我不希望这些颜色在深色模式下改变。 Gmail Android 会为此交换颜色,这没有意义:
我尝试了各种方法但没有成功:
<table role="presentation" cellspacing="0" cellpadding="0" style="border-collapse: collapse;max-width:60px!important;">
<tr>
<td width="20" height="3" style="background-color: #0055A4;"></td>
<td width="20" height="3" style="background-color: #FFFFFF;"></td>
<td width="20" height="3" style="background-color: #EF4135;"></td>
</tr>
</table>
最后一次尝试是比较有希望的,但是如何避免白色变成黑色呢?
谢谢你!
我可能已经找到了解决方案:只需在图像上方和下方添加 2px 透明边距,并且在深色模式下颜色不会改变。