HTML th charoff property
Examples
The contents of the first location of a meter unit with "M" character to the right alignment of the two characters:
<table border="1">
<tr>
<th align="char" char="M" charoff="2">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>
<tr>
<th align="char" char="M" charoff="2">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
Almost all of the major browsers do not support charoff property.
Definition and Usage
HTML5 does not support the <th> charoff property.
charoff property setting content with respect to the alignment of 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
<th charoff="number">
Property Value
值 | 描述 |
---|---|
number | 规定对齐方式。 正数规定向字符的右边对齐。 负数规定向字符的左边对齐。 |
HTML <th> tag