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