HTML tbody propiedad align
Ejemplos
Alinear a la derecha <tbody> contenido del elemento:
<table border="1"
width="100%">
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tbody align="right">
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody>
</table>
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tbody align="right">
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody>
</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 es compatible con el atributo align <tbody>. Usar CSS en su lugar.
alinear atributo especifica el contenido <tbody> elemento de la alineación horizontal.
gramática
<tbody align="left|right|center|justify|char">
propiedad Valor
值 | 描述 |
---|---|
left | 左对齐内容(表格数据的默认值)。 |
right | 右对齐内容。 |
center | 居中对齐内容(th 元素的默认值)。 |
justify | 对行进行伸展,这样每行都可以有相等的宽度(就像在报纸和杂志中)。 |
char | 将内容对准指定字符。 |
HTML <tbody> etiqueta