2017-09-24 44 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中的高度屬性,我想調整但它似乎仍然不工作。 –

相關問題