gpt4 book ai didi

html - 作为电子邮件发送时如何删除表格行之间的空格?

转载 作者:行者123 更新时间:2023-11-28 19:16:39 26 4
gpt4 key购买 nike

<分区>

我有一个 HTML 标记,它作为电子邮件发送给订阅该站点的用户。用户输入他们的电子邮件 ID,然后单击按钮设计将作为电子邮件发送给用户。

View 文件的 HTML 标记是:

<table style="margin: auto;
background: lightgray;width: 500px;border-spacing: unset;">
<tbody>
<tr>
<td>

<img src="https://cetra.in/Images/logo.png" /></td>
<td align="center" colspan="2"> <h1 style="margin: auto;">Cetra Business Travel<h1></td>
</tr>
<tr>
<td colspan="3" align="center"><img src="https://cetra.in/Images/subscribe.png" style="height: 300px;width: 500px;" /> </td>
</tr>
<tr style="background: #ffcf3d;" ><td colspan="3" style="width: 10px;padding-top: 45px;padding-bottom: 45px;">
<p style="text-align: center;
font-size: 25px;padding: 0px 50px;">
Thank you for subscribing. We are delighted to have you.Thank you for subscribing. We are delighted to
have you Thank you for subscribing. We are delighted to have you
</p>
</td></tr>
<tr style="background: white;">
<td colspan="3" align="center" style="padding-bottom: 45px;padding-top: 45px"><button type="button" style="color: white;
height: 53px;
background: black;
font-size: 30px;
padding: 10px;
border-radius: 60px;
border: none;
">Read More</button></td>
</tr>
<tr style="background: white;">



<td align="center">
<span>

<a style="color:white" href="https://www.facebook.com/pg/cetrabusinesstravel/about/">
<img src="https://cetra.in/Images/facebook_logo2.png" style="height:50px;width:50px"/></a></span>
</td>
<td align="center"><span>
<a style="color:white" href="https://twitter.com/cetrabiztravel?lang=en">
<img src="https://cetra.in/Images/twitter_logo.png" style="height:50px;width:50px"/></a></span></td>
<td align="center"><span>
<a style="color:white" href="https://in.linkedin.com/company/cetrabusinesstravel">
<img src="https://cetra.in/Images/linkedIn_logo.png" style="height:50px;width:50px"/>
</a></span></td>
</tr>

<tr style="background: white;">
<td colspan="3" align="center">
<p>Cetra Business Travel</p>
</td>
</tr>
<tr style="background: white;">
<td colspan="3" align="center"><p>
E 1202 Titanium City Center , Anand nagar road

prahladnagar

Ahmedabad, Gujarat 380015, IN
</p></td>
</tr>

<tr style="background: white;">
<td align="center" colspan="3"> <a href="cetra.in">Cetra Hospitality</a>
<a href='cetra.in/user_unsubscribe/<?php echo $id ?> '> Unsubscribe</a></td>
</tr>

</tbody>
</table>

Controller 中的变量消息包含来自该 View 的 HTML 标记。 在本地主机中查看时效果很好,但当同一文件作为消息发送时,它显示图像和文本之间存在一些差距,这两个不同的 .

The Image of design when sent as an email

如何消除图像和文本之间的差距?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com