简体   繁体   English

有没有办法在 Email 通讯/签名中隐藏被阻止的 html 图像?

[英]Is there a way to hide blocked html images in Email Newsletters/Signatures?

Ive created an email signature with a few images.我用几张图片创建了一个 email 签名。 Most email programs block these or ask for permission.大多数 email 程序会阻止这些或请求许可。 In this case the Images are displayed by a blank box.在这种情况下,图像由一个空白框显示。 Is there a way to get rid of said boxes if the client blocks html?如果客户端阻止 html,有没有办法摆脱这些盒子?

You can try to insert images as base64 Data URI (if your images are relatively small).您可以尝试将图像插入为 base64数据 URI (如果您的图像相对较小)。 You can use this online converter to generate Data URI for your images.您可以使用此在线转换器为您的图像生成数据 URI。

Here is an example:这是一个例子:

<img src="data:image/png;base64,iVBORw0KGgoAAA
ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU
5ErkJggg==" alt="Red dot" />

Alternatively, you can check out this answer about embedded attachments:或者,您可以查看有关嵌入式附件的答案

<img src="cid:0123456789">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM