Php 我的html徽标无法在电子邮件中工作

Php 我的html徽标无法在电子邮件中工作,php,html,css,email,Php,Html,Css,Email,我试图为用户重新设置密码的电子邮件编码,并希望在电子邮件中包含我网站的徽标。当我通过iphone打开邮件时,徽标可以正确显示,但当我通过yahoo.com网站打开并登录邮件时,徽标不会显示任何内容 这是我的邮件: $message=' <!doctype html> <html> <head><meta charset="UTF-8"><title>lsere Message</title></

我试图为用户重新设置密码的电子邮件编码,并希望在电子邮件中包含我网站的徽标。当我通过iphone打开邮件时,徽标可以正确显示,但当我通过yahoo.com网站打开并登录邮件时,徽标不会显示任何内容

这是我的邮件:

$message='
    <!doctype html>
    <html>
    <head><meta charset="UTF-8"><title>lsere Message</title></head>
    <body>
    <header style="border-bottom:2px solid #f0f0f0;padding-bottom:20px;"><div style="margin-top:15px;
        box-shadow:1px 1px 10px gray;
        border-radius:5px;
        width:100px;
        margin-left:15px;
        text-align:center;
        padding-top:5px;
        padding-bottom:5px;
        color:white;
        font-size:25px;
        font-weight:bold;
        background: -webkit-linear-gradient(#a13030, #780000); 
        background: -o-linear-gradient(#a13030,#780000); 
        background: -moz-linear-gradient(#a13030,#780000); 
        background: linear-gradient(#a13030,#780000); 
        ">
        L\'sere
    </div>
    </header>
    <div>
    Reset Lsere account password<br>
    <div><a href="http://localhost/social_network/reset_password.php">Click here to reset your password</a></div>
    <div>Or you can enter your six digits confirmation code and continue on the lese page</div>
    <div>Your confirmation code is <span style="background:#f0f0f0; padding:2px;">'.$confirmation_code.' <span></div>

    </div>


    </body>

    </html>';   

    $headers = 'From: kesongxie646@gmail.com\n';

    $headers.='MIME-Version: 1.0'."\r\n";
    $headers.='Content-type: text/html; charset=iso-8859-1'."\r\n";
$message='1!'
lsere消息
L'sere
重置Lsere帐户密码
或者,您可以输入六位数字的确认码,然后在lese页面上继续 您的确认代码为“$confirmation\u code” '; $headers='来自:kesongxie646@gmail.com\n′; $headers.='MIME-Version:1.0'。“\r\n”; $headers.='Content-type:text/html;字符集=iso-8859-1'。“\r\n”;
您的Iphone已经扩展了对复杂CSS的支持,但正如Vincent所说,webmail并不提供对如此复杂支持的扩展支持,当您想到它时,我知道浏览器将不支持这种支持


因此,您最好放弃CSS版本,开始考虑实际插入图像。

您真的认为可以在电子邮件中使用所有您想要的CSS吗?Yahoo mail和许多Web邮件无法处理复杂的CSS属性。您正在向人们发送一个以
开头的链接http://localhost
?真的吗?我仍然在本地计算机@Bananaim上发短信给我的网站,我不太确定它是否相关,但你有没有可能尝试过使用Internet Explorer阅读邮件?您可能需要添加
-ms-
前缀:
background:-ms线性渐变(#a13030,#780000)
Anytime:)如果此操作的全部目的是将图像介绍转换为代码,则始终可以将图像转换为数据URI Base-64代码。这里有一个网站可以帮你做到这一点