如何在背景上嵌入链接(mailchimp PHP)?

时间:2017-08-16 11:35:04

标签: php html html5 mailchimp

我的标题如下:

<tr>
  <td align="center" bgcolor="#3597D4" background="http://www.stampready.net/dashboard/editor/user_uploads/image_uploads/2017/08/15/jdKy8gpoibJTW1AX3Mf4vOLteaGmYZNSwksDrEuBhQR6CPq0zl92HVnI.jpg" style="background-size:cover;background-position:center;background-image:url(http://www.stampready.net/dashboard/editor/user_uploads/image_uploads/2017/08/15/jdKy8gpoibJTW1AX3Mf4vOLteaGmYZNSwksDrEuBhQR6CPq0zl92HVnI.jpg);">
    <br>

我想添加此链接:

href="https://intechnica.com/insurance-bot-brokers-impact-non-human-traffic-nht-insurance-industry/?utm_source=mailchimp&utm_medium=email&utm_campaign=2017_bot_control_insurance_2"

当我按照通常的添加步骤进行操作时,图像就会消失。

编辑答案(如果没有背景是&#39;阻止&#39;那么我必须将样式设置为阻止):style =&#34; display:block;背景

1 个答案:

答案 0 :(得分:1)

在HTML中,您可以添加包含<a>标记的链接。要添加指向背景的链接,只需使用此<a>标记进行换行:

&#13;
&#13;
<tr>
  <a href="https://intechnica.com/insurance-bot-brokers-impact-non-human-traffic-nht-insurance-industry/?utm_source=mailchimp&utm_medium=email&utm_campaign=2017_bot_control_insurance_2">
  <td align="center" bgcolor="#3597D4" background="http://www.stampready.net/dashboard/editor/user_uploads/image_uploads/2017/08/15/jdKy8gpoibJTW1AX3Mf4vOLteaGmYZNSwksDrEuBhQR6CPq0zl92HVnI.jpg" style="background-size:cover;background-position:center;background-image:url(http://www.stampready.net/dashboard/editor/user_uploads/image_uploads/2017/08/15/jdKy8gpoibJTW1AX3Mf4vOLteaGmYZNSwksDrEuBhQR6CPq0zl92HVnI.jpg);">
  </td>
  </a>
</tr>
&#13;
&#13;
&#13;