[英]bgcolor on td or tr table element - html email
我想盡量減少html電子郵件內聯樣式上的膨脹,但要保留盡可能多的客戶端支持,想知道使用bgcolor哪個更好。
每個<td>
但有很多膨脹
<tr>
<td bgcolor="#000000"></td>
<td bgcolor="#000000"></td>
</tr>
要么
PARENT <tr>
最小化但受支持嗎?
<tr bgcolor="#00000">
<td></td>
<td></td>
</tr>
通過簡短的測試,所有同級<td>
都繼承了顏色,但想知道它有什么支持。 下面的文章提到了背景色,但沒有提及<tr>
元素。
tr會將背景色應用於每個td元素。高度支持。 通常,tr也用於確定奇數或偶數背景色。
<tr class="${(c % 2) == 0 ? 'even' : 'odd'}">
The <tr> tag defines a row in an HTML table.
A <tr> element contains one or more <th> or <td> elements. color can
be applied to the row using bgcolor. bgcolor rgb(x,x,x) #xxxxxx
colorname Not supported in HTML5. Specifies a background color for a
table row
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.