2017-09-24 12 views
0

私は電子メールテンプレート用のテーブルを作成しています。私はTDの高さを低くしたいと思っていましたが、できません高さが調整されないのはなぜですか?

注:rgb(41,62,151)bgの色、5%幅、2の100spxの高さを持つ2つの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>

すべてのヘルプ感謝!事前に感謝しています

答えて

0

多くの電子メールクライアントはCSSサポートが限られているため、スタイル属性は効果がありません。 tdの高さ属性を使用してみてください。

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

hmm調整したい両方の高さ属性を試しましたが、まだ動作していないようです。 –

関連する問題