Latest web development tutorials

HTML thead alinhar propriedade

HTML thead manual de etiqueta de Referência tag HTML <thead>

Exemplos

Esquerda Alinhar o conteúdo <thead> elemento:

<table border="1" width="100%">
<thead align="left">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>

tente »

Suporte a navegadores

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Todos os principais navegadores suportam atributo align.

Nota: IE não pode lidar corretamente com o valor "justify", IE será centrada maneira.

Nota: Quase nenhum navegador pode lidar com valor "char" corretamente.


Definição e Uso

O HTML5 não suporta o <thead> atributo align. Use CSS em vez disso.

atributo align especifica o conteúdo <thead> elemento do alinhamento horizontal.


gramática

<thead align="left|right|center|justify|char">

Valor de propriedade

描述
left 左对齐内容。
right 右对齐内容。
center 居中对齐内容(表头元素的默认值)。
justify 对行进行伸展,这样每行都可以有相等的宽度(就像在报纸和杂志中)。
char 将内容对准指定字符。


HTML thead manual de etiqueta de Referência tag HTML <thead>