table tr td
{
vertical-align:middle;
}
定製
table.custom tr td
{
vertical-align:top;
}
當我使用這樣的:
<table class="custom">
<tr>
<td>
<table>
<tr>
<td>this text align top, but I want to align middle
</td>
</tr>
</table>
</td>
</tr>
</table>
子錶行爲像其父。如何忽略父元素樣式?