English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
<tr> A maneira de usar a propriedade charoff, demonstração em tempo real de como usar a propriedade charoff do <tr>, compatibilidade do navegador, definição da sintaxe e detalhes dos valores dos atributos.
Coloque o número1Line 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 see ‹/›
IEFirefoxOperaChromeSafari
Almost all mainstream browsers do not support the charoff attribute.
HTML5 The charoff attribute for <tr> is not supported.
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 characters to the right. Negative numbers align characters to the left. |