Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
93 views
in Technique[技术] by (71.8m points)

Text is outside the link in email template

I've got a problem with displaying link in my email template. Following code:

<a 
  href="[SEGMENT_URL]" 
  style="display: inline-block; background-color: #F7F9FB; border: 1px solid #C4C4C4; 
  border-radius: 4px; padding: 15px 25px; font-weight: bold; font-size: 18px; 
  line-height: 21px; text-align: center; color: #FE7F66; text-decoration: none;"
>
  [SEGMENT_NAME]
</a>

is rendered this way in email clients:

<a 
  href="https://example.org/segments/526" 
  style="display:inline-block;background-color:#F7F9FB;border:1px solid #C4C4C4;
  border-radius:4px;padding:15px 25px;font-weight:bold;font-size:18px;
  line-height:21px;text-align:center;color:#FE7F66;text-decoration:none" 
  target="_blank" 
  rel="noopener"
></a>
<a class="-wm-prevent_link">Segment name</a>

Anyone knows what causes the bug and how to fix it?

question from:https://stackoverflow.com/questions/65934120/text-is-outside-the-link-in-email-template

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...