Propiedades de HTML td align
Ejemplos
Contenido adecuado de células align:
<table width="100%" border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td align="right">$100</td>
</tr>
</table>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td align="right">$100</td>
</tr>
</table>
Trate »
Soporte para el navegador
Todos los principales navegadores soportan atributo align.
Nota: Casi no hay ningún navegador puede manejar valor "char" correctamente.
Definición y Uso
HTML5 no es compatible con el atributo align <td>. Usar CSS en su lugar.
atributo align especifica los contenidos de las celdas de la alineación horizontal.
gramática
<td align="left|right|center|justify|char">
propiedad Valor
值 | 描述 |
---|---|
left | 左对齐内容(<td> 的默认值)。 |
right | 右对齐内容。 |
center | 居中对齐内容。 |
justify | 对行进行伸展,这样每行都可以有相等的宽度(就像在报纸和杂志中)。 |
char | 将内容对准指定字符。 |
HTML etiqueta <td>