当Gmail上的轻/暗模式更改图像

发布于 2025-01-25 22:55:30 字数 196 浏览 2 评论 0原文

我正在尝试在Gmail模板中更改图像徽标。我发现的唯一解决方案是将半透明的轮廓添加到透明的png,并设置background white作为基本,颜色反转将将其更改为黑色或drop-shadow在图像上。是否有办法解决此问题,可以检查是否不使用查询的情况下是黑色/光线吗?然后呈现不同的图像。

I'm trying to change an Image logo in Gmail template. The only solution that I've found is to add translucent outline to transparent PNGs and set background white as basic and the color invert will change it to black, or drop-shadow on the image. Is there a way around this issue to check if prefers-color-scheme is dark/light without using the query? and then render a different image.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文