2017-09-24 45 views
0

我一直在为电子邮件模板创建一个表格。我想减少我的TDs的高度,但不能为什么我的td高度似乎没有调整?

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


 

 
<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>

任何帮助表示赞赏!在此先感谢

回答

0

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

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

嗯我已经尝试了两个tds中的高度属性,我想调整但它似乎仍然不工作。 –

相关问题