我希望尽量减少我的html电子邮件内联样式的膨胀,但保留尽可能多的客户支持,想知道哪个更适合应用bgcolor。
每个private int doJoin() {
int s; Thread t; ForkJoinWorkerThread wt; ForkJoinPool.WorkQueue w;
return (s = status) < 0 ? s :
((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ?
(w = (wt = (ForkJoinWorkerThread)t).workQueue).
tryUnpush(this) && (s = doExec()) < 0 ? s :
wt.pool.awaitJoin(w, this, 0L) :
externalAwaitDone();
}
/**
* Pops the given task only if it is at the current top.
* (A shared version is available only via FJP.tryExternalUnpush)
*/
final boolean tryUnpush(ForkJoinTask<?> t) {
ForkJoinTask<?>[] a; int s;
if ((a = array) != null && (s = top) != base &&
U.compareAndSwapObject
(a, (((a.length - 1) & --s) << ASHIFT) + ABASE, t, null)) {
U.putOrderedInt(this, QTOP, s);
return true;
}
return false;
}
,但有很多臃肿
<td>
或
PARENT <tr>
<td bgcolor="#000000"></td>
<td bgcolor="#000000"></td>
</tr>
最小化但受支持?
<tr>
通过简短的测试,所有兄弟<tr bgcolor="#00000">
<td></td>
<td></td>
</tr>
都继承了颜色,但想知道它有什么支持。以下article提到了背景颜色,但没有提及<td>
元素。
答案 0 :(得分:0)
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