问题描述
我想在我的新用户确认电子邮件中添加社交媒体图标,例如- Image of how the confirmation email should look like
它在我的浏览器上运行良好,但是当我为我的网站实施此代码并且用户在我的网站上注册时,他们收到的电子邮件看起来像(没有显示电子邮件图标,但它作为超链接工作当他们点击图标位置的空白区域时)-- Image of how user is seeing confirmation email without icon
我用过的代码---
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body
{
width:60%;
height:auto;
margin-left:auto;
margin-right:auto;
}
.wrapper {
height:auto;
width:60%;
margin:50px;
padding: 20px;
color: #444;
font-size: 1.3em;
background: #F5F5F5;
border:5px solid #FFFAFA;
}
.wrapper .inner
{
background:white;
padding:50px;
}
img
{
display: block;
margin-left: auto;
margin-right: auto;
}
#p1 {
background:#592f80;
text-decoration: none;
padding:15px;
border-radius: 5px;
color: #fff;
}
.icon_t
{
display: flex;
height: 100px;
text-align: center;
width:100%;
}
.icon_t ul {
margin-top:0.5px;
display: flex;
list-style-type: none;
text-align: center;
justify-content: center;
margin-left:auto;
margin-right:auto;
}
.icon_t ul li a {
display: block;
color: #5F9EA0;
text-align: center;
font-size: 25px;
height: 60px;
width: 60px;
line-height:60px;
background: none;
border-radius: 50%;
margin-top: 25px;
cursor: pointer;
}
.icon_t ul li a:hover{
background:none;
color:purple;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="inner">
<h2>Hi,</h2>
<img src="company_logo2.png" alt="our company logo">
<p>Thank you for signing up on our site. Please click on the link below to verify your account.</p>
<a id="p1" href=" ******** ">Verify Email!</a>
<p>If you receive this email by mistake,then simply ignore this email.You won't be verified if you don't click the button above.</p>
</div>
<div class="icon_t">
<ul>
<li><a href="https://www.facebook.com"><i class="fa fa-facebook"></i></a></li>
<li><a href="https://www.twitter.com"><i class="fa fa-twitter"></i></a></li>
<li><a href="https://www.instagram.com"><i class="fa fa-instagram"></i></a></li>
<li><a href="https://bd.linkedin.com/"><i class="fa fa-linkedin"></i></a></li>
<li><a href="https://youtube.com/"><i class="fa fa-youtube"></i></a></li>
</ul>
</div>
</div>
</body>
</html>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)