HTML colgroup charoff property
Examples
. "" In the example below, the second column of the table of contents and the character to the right-aligned position of the two characters:
<table width="100%" border="1">
<colgroup align="left"></colgroup>
<colgroup align="char" char="." charoff="2"></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="." charoff="2"></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 charoff property.
Definition and Usage
In HTML5 does not support <colgroup> charoff property.
charoff attribute specifies the alignment of the content relative to the offset specified by the char attribute characters.
Only when the align attribute set to "char" char property and set to use charoff property.
grammar
<colgroup charoff="number">
Property Value
值 | 描述 |
---|---|
number | 规定对齐方式。 正数规定向字符的右边对齐。 负数规定向字符的左边对齐。 |
HTML <colgroup> tag