HTML COLGROUP właściwość Align
Przykłady
Dwa <COLGROUP> Stół elementem zapewnia trzy różne wyrównanie (zauważ, że pierwsza <COLGROUP> Element obejmuje dwa):
<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>
<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>
Spróbuj »
Pomoc Browser
Tylko Opera i Internet Explorer 8 i wcześniejsze wersje (IE 9 nie obsługuje) atrybutu align wsparcia (IE 9 nie obsługuje).
Definicja i Wykorzystanie
W HTML5 nie obsługuje <COLGROUP> align atrybut.
Atrybut align określa poziome wyrównanie zawartości grupy kolumny.
gramatyka
<colgroup align="left|right|center|justify|char">
Wartość nieruchomości
值 | 描述 |
---|---|
left | 左对齐内容(默认值)。 |
right | 右对齐内容。 |
center | 居中对齐内容(th 元素的默认值)。 |
justify | 对行进行伸展,这样每行都可以有相等的宽度(就像在报纸和杂志中)。 |
char | 将内容对准指定字符。 |
HTML <COLGROUP> tag