在Yahoo电子邮件中设置背景图片的问题 [英] Issue to set background image in yahoo email
本文介绍了在Yahoo电子邮件中设置背景图片的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我设置了background image in email templates
.将电子邮件发送到Gmail
时,但在yahoo
中打开电子邮件时,它工作正常.不显示背景图像.
I set a background image in email templates
. It's work fine when sending email to Gmail
but when emails open in yahoo
. Does not show the background image.
在Yahoo电子邮件中显示图像的任何特定设置.
Any specific settings to show image in yahoo email.
在我的电子邮件模板代码下方.
Below my code of email template.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="background: url(http://domain.com/images/abc.jpg) top; background-size:cover;">
<div class="abc">
<p>Hello,</p>
<p></p>
<p>Welcome</p>
<p>Thanks</p>
</div>
</body>
</html>
任何人都有经验.
推荐答案
对于Yahoo来说,关键是url使用单引号(或者如果您将属性包含在单引号中,则可能使用双引号).
For Yahoo the key is that the url uses single quotes (or perhaps double quotes if you have the attribute in single quotes).
因此必须是:
<body style="background: url('http://example.com/images/abc.jpg') top;">
...
</body>
在网址中没有单引号的情况下,Yahoo解析器将拒绝此位.
Without the single quotes in the url, the Yahoo parser will reject this bit.
这篇关于在Yahoo电子邮件中设置背景图片的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文