Latest web development tutorials

HTML colgroup alinhar propriedade

Tag colgroup Referência HTML tag HTML <colgroup>

Exemplos

Dois <colgroup> elemento tabela fornece três alinhamento diferente (Note-se que o primeiro elemento <colgroup> abrange dois):

<table width="100%" border="1">
<colgroup span="2" align="left"></colgroup>
<colgroup align="right"></colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
<td>$53</td>
</tr>
</table>

tente »

Suporte a navegadores

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Apenas Opera e Internet Explorer 8 e versões anteriores (IE 9 não suporta) atributo apoio align (O IE 9 não suporta).


Definição e Uso

Em HTML5 não suporta <colgroup> align atributo.

Alinhar atributo especifica o alinhamento horizontal do conteúdo do grupo de colunas.


gramática

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

Valor de propriedade

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


Tag colgroup Referência HTML tag HTML <colgroup>