为了账号安全,请及时绑定邮箱和手机立即绑定

我的 PHP HTML 电子邮件表单的某些 CSS 未进入邮件表单

我的 PHP HTML 电子邮件表单的某些 CSS 未进入邮件表单

PHP
长风秋雁 2023-07-07 10:52:38
我正在使用 PHPMailer 发送电子邮件,但发送时表单 CSS 的各个方面不会进入邮件:调整内容:居中;对齐项目:居中还有字体系列。轮廓偏移:5px;有谁能告诉我为什么这些 CSS 没有进入发送的电子邮件表单,而所有其他 CSS 加载都没有问题?如果我在控制台中输入这些值,它们就会起作用,所以我不明白为什么在发送邮件时这些 CSS 值会从 DOM 中删除。这是我的代码:<style>@import url("https://fonts.googleapis.com/css2?family=Thasadith:ital,wght@0,400;0,700;1,400;1,700&display=swap");</style>        <div style="background-color: #ffffff; margin: auto; width: 65%; border: 1px solid #e1e1e1; outline: 1px solid #e1e1e1; outline-offset: 5px; margin-top: 25px; margin-bottom: 25px;padding: 5px;">                <div style="display: flex; justify-content: center; align-items: center; background-color: #f35653; margin-bottom: 20px; padding: 30px 0px;">                <div style="background-image: url(https://i.imgur.com/XPTHrId.png); background-position: center; background-size: cover; width: 50px; height: 50px;"></div>                <div style="font-size: 40px; text-transform: uppercase; align-self: center; color: white; font-family: Thasadith, sans-serif; font-weight: 700; margin-left: 5px;">Enkou Academy</div></div>                <div style="padding: 10px 40px 40px;font-size: 15px;">                <p>We received a request to reset the password for your Enkou Academy account.<br><br>                To reset the password, click on the link below:<br><br>                <a href="' . $url . '" style="text-decoration: none; color: #f35652;">Click here!</a><br><br>                If you didn&#39;t request a password reset, let us know.</p>                </div>        </div>'
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 71 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信