如何在超过容器的宽度或高度时显示长替代文本
How to show long alt text when it exceeds the width or height of container
文章中,https://litmus.com/community/learning/12-alt-text-in-html-email
它提到了:
In many email clients, ALT text will disappear once the size or length of the text exceeds the width and/or height of the image container. Due to this behavior, it’s probably best to stick to shorter descriptions and smaller font sizes to avoid having your ALT text removed altogether.
但是我们的 PM 真的想显示替代文本...有什么方法可以实现吗?
谢谢!
我会尝试说服您的 PM 使用短 ALT 标签。而不是冒着他们不露面的风险。
如果他不像 PM 那样采纳建议,还有另一种选择。设置 ALT 标签的样式,例如使用小而易读的字体大小使文本适合。不要忘记设置行高,因为如果行高小于字体大小,许多电子邮件客户端会切断字母的底部。也许这个 blog 也会帮助你!
<img src=".../image.jpg" width="300" height="300" alt="Get 30% off today!" style="font-size: 18px;line-height:20px;" />
文章中,https://litmus.com/community/learning/12-alt-text-in-html-email 它提到了:
In many email clients, ALT text will disappear once the size or length of the text exceeds the width and/or height of the image container. Due to this behavior, it’s probably best to stick to shorter descriptions and smaller font sizes to avoid having your ALT text removed altogether.
但是我们的 PM 真的想显示替代文本...有什么方法可以实现吗?
谢谢!
我会尝试说服您的 PM 使用短 ALT 标签。而不是冒着他们不露面的风险。
如果他不像 PM 那样采纳建议,还有另一种选择。设置 ALT 标签的样式,例如使用小而易读的字体大小使文本适合。不要忘记设置行高,因为如果行高小于字体大小,许多电子邮件客户端会切断字母的底部。也许这个 blog 也会帮助你!
<img src=".../image.jpg" width="300" height="300" alt="Get 30% off today!" style="font-size: 18px;line-height:20px;" />