gpt4 book ai didi

html - 为什么我的 td 高度似乎没有调整?

转载 作者:行者123 更新时间:2023-11-28 02:57:00 25 4
gpt4 key购买 nike

我一直在为电子邮件模板创建表格。我想降低我的 TD 的高度但不能

注意:两个带 rgb(41,62,151) bg 颜色、5% 宽度、2 的 colspan、100px 高度的 TD,我不能减少。

 

<table cellpadding="0" cellspacing="0" style="text-align: center; width: 100%; font-size: 10pt; border-collapse: collapse">
<tbody style="margin: 0">

<tr>
<td colspan="14" style="background-color: rgb(41, 62, 151); border-bottom-color: rgb(41, 62, 151)">
<img src="an image here">
</td>
</tr>

<tr>
<td colspan="2" style="background-color: rgb(41, 62, 151); height: 100px; width: 5%">
<br>
</td>

<td colspan="10" style="background-color: white; height: 350px; width: 90%;
padding: 30px 100px">
<p style="text-align: justify"><span style="color: rgb(42, 61, 151); font-
family: Callibri, Geneva, sans-serif; font-size: large; text-align: left">some text here</span><b style="color: rgb(42, 61, 151); font-family:
Callibri, Geneva, sans-serif; font-size: large; text-align: left">&nbsp;</b>
</p><p style="text-align: justify">
<font color="#283e97">text here</font><br>some text here<br><br><span
style="color: rgb(40, 62, 151)">some text here<br><br><span style="color:
rgb(40, 62, 151)">

some text here</span><br>Some text here</p>
</td>

<td colspan="2" style="background-color: rgb(41, 62, 151); height: 100px; width: 5%">
<br>
</td>

</tr>


</tbody>
</table>

感谢任何帮助!提前致谢

最佳答案

许多电子邮件客户端对 CSS 的支持有限,因此 style 属性可能没有任何作用。尝试使用 td 的高度属性。

<td height="100px">...</td>

关于html - 为什么我的 td 高度似乎没有调整?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46395566/

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