English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Usage method of the charoff attribute of <tr>, online instance demonstration of how to use the <tr> charoff attribute, browser compatibility, syntax definition, and detailed information about its attribute values.
Place the first1Row and the2The content of the row is aligned two characters to the right of the "." character:
<table style="width:100%" border="1"> <tr align="char" char="." charoff="2"> <td>2018</td> <td>$15320.00</td> </tr> <tr align="char" char="." charoff="2"> <td>2019</td> <td>$18320.00</td> </tr> </table>Test and see ‹/›
IEFirefoxOperaChromeSafari
Almost all mainstream browsers do not support the charoff attribute.
HTML5 The charoff attribute is not supported for <tr>.
The charoff attribute specifies the alignment offset of the content relative to the character specified by the char attribute.
The charoff attribute can only be used when the align attribute is set to "char" and the char attribute has been set.
<tr charoff="number">
Value | Description |
---|---|
number | Specify the alignment method. Positive numbers align the character to the right. Negative numbers align the character to the left. |