HTML colgroup char attribute
Examples
. "" In the example below, the second column of the table content and character alignment:
<table width="100%" border="1">
<colgroup align="left"></colgroup>
<colgroup align="char" char="."></colgroup>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100.00</td>
</tr>
<tr>
<td>February</td>
<td>$10.00</td>
</tr>
</table>
<colgroup align="left"></colgroup>
<colgroup align="char" char="."></colgroup>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100.00</td>
</tr>
<tr>
<td>February</td>
<td>$10.00</td>
</tr>
</table>
try it"
Browser Support
Note: Almost all of the major browsers do not support char attributes.
Definition and Usage
In HTML5 does not support <colgroup> char attributes.
char attribute specifies the column group content relative alignment of a character.
Only if the align attribute set to "char" when to use char property.
Default char attribute is the decimal point character page language.
grammar
<colgroup char="character">
Property Value
值 | 描述 |
---|---|
character | 规定将内容与之对齐的字符。 |
HTML <colgroup> tag